[ python-Bugs-620739 ] missing mappings in locale tables

SourceForge.net noreply at sourceforge.net
Tue Feb 15 00:19:33 CET 2005


Bugs item #620739, was opened at 2002-10-09 14:39
Message generated for change (Comment added) made by loewis
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: 2005-02-15 00:19

Message:
Logged In: YES 
user_id=21627

I think that would be appropriate.

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

Comment By: Fredrik Lundh (effbot)
Date: 2005-02-14 23:17

Message:
Logged In: YES 
user_id=38376

(should I mark this as "won't fix" and close it?)

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-20 21:25

Message:
Logged In: YES 
user_id=21627

The problem with the OEMCP is more complex, given the chcp
utility (i.e. that the console code page may vary from
console to console), see patch 612627. So I don't think we
should keep a database of OEM code pages.

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

Comment By: Oleg Deribas (older)
Date: 2002-10-20 21:02

Message:
Logged In: YES 
user_id=281684

There is also problem with default charset on windows. It
have different charsets for GUI and textmode (OEM and ANSI).
So for Ukrainian it is 1251 and 866 codepages accordingly.
And windows uses non-POSIX locale names like ukr_ukr.1251
instead of uk_UA.CP1251

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

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


More information about the Python-bugs-list mailing list