python manage.py syncdb fails if no locale is set
|Reported by:||gunther.stengl@…||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.4|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I already filed a FreeBSD Problem Report under
- Django (py27-django-1.4.3) fails to create the db-superuser when doing a "python mange.py syncdb" AND "LC_ALL" is unset.
- "LC_ALL=" causes the locale.getdefaultlocale() to return "(None, None)" which is not a String, as needed by decode().
- If LC_ALL is set correctly, the scripts runs as expected.
I posted a porposal for a patch, but on the other hand there's the question if django should run "manage.py syncdb" o a system where locale.getdefaultlocale() returns 'None' instead of string. As far as I have seen, there's a lot of decoding done with locales, etc.
Thanks in advance.