[issue2173] Pyton fails silently on bad locale
New submission from Michael Otteneder: Python seems to fail silently when LANG enviroment variable is set to a bad value. In Mac OS X Leopard it is set too UTF-8 for instance which does not seem to be valid. Python fails building the modules during make and the generated python.exe is unable to output anything. Setting the LANG variable to C or some other valid value fixes the problem. But I suppose python should fail more verbose in case of a bad locale,or maybe it should fallback to a standard locale. -- components: Interpreter Core messages: 62892 nosy: motteneder severity: normal status: open title: Pyton fails silently on bad locale type: behavior versions: Python 3.0 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2173> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2163] test_socket is flakey
Michael Otteneder added the comment: I'm not able to reproduce this with latest svn on OS X 10.5.2. test_socket never fails. -- nosy: +motteneder __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2163> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2173] Pyton fails silently on bad locale
Michael Otteneder added the comment: Interestingly it fails with a different error message on Mac. The Ubuntu one is at least helpful. I get this during make(configure also runs fine) : gcc -u _PyMac_Error -o python.exe \ Modules/python.o \ libpython3.0.a -ldl make: *** [sharedmods] Error 1 The created python.exe also behaves very strange: Tinuviel:py3k mc$ ./python.exe Python 3.0a2+ (py3k:61071, Feb 26 2008, 14:50:42) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("hello") >>> exit() >>> exit() >>> dfklasjd >>> Locales: Tinuviel:py3k mc$ locale LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= Solution: set LANG to "C" or some other valid value. Added file: http://bugs.python.org/file9560/make.log __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2173> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2173] Pyton fails silently on bad locale
Michael Otteneder added the comment: On my system I get different results. The error message is everything but useful. My Output: gcc -u _PyMac_Error -o python.exe \ Modules/python.o \ libpython3.0.a -ldl make: *** [sharedmods] Error 1 Tinuviel:py3k mc$ ./python.exe Python 3.0a2+ (py3k:61071, Feb 26 2008, 14:50:42) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("hello") >>> exit() >>> exit() >>> dfklasjd >>> Locales: LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= Added file: http://bugs.python.org/file9561/make.log __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2173> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com