#5846: locale.py fails if LANG is UTF-8
--------------------------------------------------------+-------------------
Reporter: Patrick Lauber <[EMAIL PROTECTED]> | Owner:
nobody
Status: new | Component:
Internationalization
Version: SVN | Resolution:
Keywords: | Stage:
Accepted
Has_patch: 0 | Needs_docs:
0
Needs_tests: 0 | Needs_better_patch:
0
--------------------------------------------------------+-------------------
Changes (by mtredinnick):
* component: Uncategorized => Internationalization
* stage: Unreviewed => Accepted
Comment:
This is really a bug in Leopard. UTF-8 doesn't look like a valid value for
the LANG environment variable. It should be something of the form
{{{language[_territory][.codeset]}}}, where UTF-8 is only the ''codeset''
part.
As you can see from the traceback, it isn't Django that's having the
problem here. It's Python's standard locale library.
We can probably put a workaround into Django, but you should also file a
bug with Apple, please, so that they fix this. It's just dumb.
--
Ticket URL: <http://code.djangoproject.com/ticket/5846#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---