Opened 3 years ago

Closed 3 years ago

#19694 closed Uncategorized (duplicate)

python syncdb fails if no locale is set

Reported by: gunther.stengl@… Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: 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 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 " 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.

Change History (1)

comment:1 Changed 3 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This has been fixed for 1.5, it was reported in #16017 (and others).

Note: See TracTickets for help on using tickets.
Back to Top