[Python-bugs-list] [ python-Bugs-620739 ] missing mappings in locale tables

noreply@sourceforge.net noreply@sourceforge.net
Wed, 09 Oct 2002 10:38:07 -0700


Bugs item #620739, was opened at 2002-10-09 14:39
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620739&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fredrik Lundh (effbot)
>Assigned to: Fredrik Lundh (effbot)
Summary: missing mappings in locale tables

Initial Comment:
(via mail from Oleg Deribas)

Here are two missed mappings in locale.py for russian 
and ukrainian languages:

    0x0422: "uk_UA", # Ukrainian (Ukraine)
    0x0419: "ru_RU", # Russian (Russia)

locale_alias table also misses mapping for ukrainian:

        'uk':                            'uk_UA.CP1251',
        'uk_uk':                         'uk_UA.CP1251',

Is it possible to include this in sources?


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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-10-09 19:38

Message:
Logged In: YES 
user_id=21627

I withdraw my question on windows_locale.

As for uk_uk, it appears to be completely bogus. The country
code for the Ukraine is UA, not UK (this is semi-officially,
i.e. IANA-assigned, the United Kingdom).

As for associating CP1251 with them: I don't care; I find
the whole notion of "getdefaultlocale" broken. People can
also arrange their systems to use uk_UA with UTF-8 if they
want to, or iso-8859-5 (although the latter is reportedly
insufficient for Ukrainian).

Fredrik, feel free to add whatever you think appropriate.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-10-09 17:54

Message:
Logged In: YES 
user_id=80475

In some non-python projects (found through a google 
search), uk_uk is an encoding alias for KOI8-U.


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

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-09 14:55

Message:
Logged In: YES 
user_id=21627

I'm sure many more are missing also, Microsoft has currently
143 language identifiers.

Assuming this goes into windows_locale, why does it have a a
codeset in it?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=620739&group_id=5470