[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r85430 (remove PYTHONFSENCODING), see #9992. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: > Maybe the PYTHONWARNINGS code should be moved there instead? sys.warnoptions is read by the warnings module (not the _warnings module) when this module is loaded. The warnings module is loaded by Py_InitializeEx() if sys.warnoptions list is not empty. It m

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: > Indeed, the fs encoding isn't initialized until later in > Py_InitializeEx. Maybe the PYTHONWARNINGS code should be moved > there instead? sys.warnopts should be filled early because it is used to initialize the _warnings module, and the _warnings module ha

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Philip Jenvey
Philip Jenvey added the comment: It sounds like you had PYTHONWARNINGS using the fs encoding before r84694, but reverted it due to bootstrapping issues. Indeed, the fs encoding isn't initialized until later in Py_InitializeEx. Maybe the PYTHONWARNINGS code should be moved there instead?

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread STINNER Victor
STINNER Victor added the comment: > OK, so who's messing up: subprocess or Py_main()? Well, this is the real question :-) locale encoding is used to decode command line arguments (sys.argv), filesystem encoding is used to decode environment variables and to encode subprocess arguments and en

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Philip Jenvey
Changes by Philip Jenvey : -- nosy: +pjenvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Brett Cannon
Brett Cannon added the comment: OK, so who's messing up: subprocess or Py_main()? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread STINNER Victor
New submission from STINNER Victor : $ PYTHONFSENCODING=latin-1 ./python Lib/test/test_warnings.py ... == FAIL: test_nonascii (__main__.CEnvironmentVariableTests) -