Hi,

As I've previously described (without explicit file name I believe
though) in my email to 185776, 372684, 369689, locales are hardcoded in
/usr/lib/python2.4/locale.py into locale_alias dictionary. whatever is
not there causes an error.

for the missing ones there is a note:

,---------------------------------------------------------------------------
| # NOTE: this mapping is incomplete.  If your language is missing, please
| # submit a bug report to Python bug manager, which you can find via:
| #     http://www.python.org/dev/
| # Make sure you include the missing language identifier and the suggested
| # locale code.
| #
`---

what I wrote was

,--------------------------------------------------------------------------
| So my guess to fix all those bugs in fast way, missing locales
| should be added to the list. It seems, although en_ZA was found
| missing,it  wasn't added and still missing for locale_alias, thus
| showing that this solution might be highly ineffective and wrong way.
|
| Better way to fix this would be probably to add use of
| /usr/share/i18n/SUPPORTED which has all those lang.encoding aliases
| defined. That also would favor more orthogonal design, so that python's
| internals don't duplicate (and thus ommit) some locales defined on the
| system. /usr/share/i18n/SUPPORTED is highly Linux specific solution thus
| might not be favored by python upstream, but might be very crucial for
| i18n support of python among debian community.
`---

hope this helps

On Fri, 12 Jan 2007, Anders Breindahl wrote:

> On 200701120034, Matthias Klose wrote:
> > Where is this en_DK locale defined? the python locale information is
> > generated from /usr/share/X11/locale/locale.alias, which doesn't have
> > this definition.

> How a locale is defined, I don't know. However, a quick recursive grep
> on /etc and /usr pointed me in these directions:

> /usr/share/i18n/locales/en_DK
> /etc/environment
> /etc/default/locale

> However, you're correct that en_DK does not appear in
> /usr/share/X11/locale/locale.alias. I can't say if that is an error.

-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to