[Bug 41987] Need to set GST_SUBTITLE_ENCODING env for CJK non-UTF8

atie atie.at.matrix at gmail.com
Sat Apr 29 00:58:12 UTC 2006


Public bug reported:

Affects: gst-plugins-base0.10 (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed


Description:
Bug 39198 had been marked as "Fix Released", in addition to the patch in
the bug, we need to set GST_SUBTITLE_ENCODING env somehow (probably with
language-support-?? packages) if subtitles are encoded with CJK non-
UTF-8 encodings because of the following code.

+  encoding = g_getenv ("GST_SUBTITLE_ENCODING");
+  if (encoding == NULL || *encoding == '\0') {
+    /* if local encoding is UTF-8 and no encoding specified
+     * via the environment variable, assume ISO-8859-15 */
+    if (g_get_charset (&encoding)) {
+      encoding = "ISO-8859-15";
+    }
+  }

For example, GST_SUBTITLE_ENCODING=cp949 needs to be set for Korean,
otherwise the above fix doesn't fix anything at all as you see
ISO-8859-15 assumed in case of the env not specified.

-- 
Need to set GST_SUBTITLE_ENCODING env for CJK non-UTF8
https://launchpad.net/bugs/41987




More information about the desktop-bugs mailing list