http://bugs.cinelerra.org/show_bug.cgi?id=513

           Summary: localized interface is displayed in wrong charset
           Product: Cinelerra
           Version: 2.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: User Interface
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


in locale ru_RU.CP1251 user interface was displayed in .po file's encoding
(koi8-r)
instead of the user's encoding, causing completely unreadable text.
workaround is to launch
LANG=C cinelerra

proposed patch:

--- hvirtual/cinelerra/main.C   2006-10-02 19:01:40 +0300
+++ hvirtual/cinelerra/main.C   2008-08-07 19:01:31 +0300
@@ -82,10 +82,18 @@



+       /* setting LC_MESSAGES and LC_CTYPE was not enough, but  LC_ALL was
fine. */
+       //setlocale (LC_MESSAGES, "");
+       //setlocale (LC_CTYPE, "");
+       setlocale (LC_ALL, "");
+       /* gettext should obtain charset encoding from current locale.
+        * Otherwise translation can be displayed in .po file's encoding,
+        * instead of the user's encoding, causing completely unreadable text
+        * in case those encodings are different. This bug is undependent of 
+        * the utf-8 dirty hack above. 
+        */
        bindtextdomain (PACKAGE, LOCALEDIR);
        textdomain (PACKAGE);
-       setlocale (LC_MESSAGES, "");
-       setlocale (LC_CTYPE, "");

        for(int i = 1; i < argc; i++)
        {


Reproducible: Always


-- 
Configure bugmail: http://bugs.cinelerra.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to