Bugs item #632612, was opened at 2002-11-02 07:52
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428680&aid=632612&group_id=40696

>Category: Appearance/Rendering
>Group: CVS
Status: Open
>Resolution: Accepted
>Priority: 6
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).

----------------------------------------------------------------------

>Comment By: Sean 'Shaleh' Perry (shaleh)
Date: 2002-11-03 16:01

Message:
Logged In: YES 
user_id=37132

I agree 2) seems like the best choice.  We are willing to examine the 
implementation and then weight the costs and benefits. 
 

----------------------------------------------------------------------

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]

Reply via email to