Bugs item #632612, was opened at 2002-11-02 18:52 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428680&aid=632612&group_id=40696
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sergey Vlasov (vsu) Assigned to: Nobody/Anonymous (nobody) Summary: ru_RU.{CP1251,UTF8} locales don't work Initial Comment: Blackbox (all known versions, including the latest CVS) does not work correctly with LANG=ru_RU.CP1251 or LANG=ru_RU.UTF-8. The problem is that the Russian translation is encoded in the KOI8-R encoding, and the catgets() functions do not perform any character set conversion. Because of this, all translated strings are in the wrong encoding and are displayed as garbage in ru_RU.CP1251 or nothing at all in ru_RU.UTF-8. This problem can be solved in several ways: 1. Add several versions of the same translation, differing only in the encoding. This requires some changes in lib/i18n.{cc,hh} (to try, e.g., ru_RU.CP1251 before stripping it to ru_RU); the patch to do it (for the current CVS) is attached. The advantage is that the other code in Blackbox is not changed; the main disadvantages are duplication of information and increased burden for translators. 2. Add support for charset conversion to the i18n code. This will require iconv() support (but people who want to use it and have a system without the iconv() function can install the GNU libiconv library). This way the message catalogs can remain in one encoding per language. Also, looks like iconv() will be needed anyway to support the netwm specification (which requires UTF-8 strings), so the iconv requirement is not unreasonable. 3. Move to gettext(), which can do charset conversion itself (probably unacceptable because of the different license). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428680&aid=632612&group_id=40696 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] List archives: http://asgardsrealm.net/lurker/splash/index.html Trouble? Contact [EMAIL PROTECTED]