[Python-Dev] bogus LANG setting results in "import site failed" message

Fredrik Lundh fredrik@pythonware.com
Fri, 7 Jul 2000 21:13:27 +0200

[fredrik@brain src]$ export LANG=foobar
[fredrik@brain src]$ ./python
'import site' failed; use -v for traceback
Python 2.0b1 (#4, Jul  7 2000, 12:23:15)  [GCC egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Copyright 1995-2000 Corporation for National Research Initiatives (CNRI)

that "import site" is a bit disturbing.  maybe the locale-checking
code should handle this case a bit more gracefully?

(like, say, printing a more explicit warning message).