[issue8622] Add PYTHONFSENCODING environment variable

2010-08-25 Thread STINNER Victor
STINNER Victor added the comment: > test_sys is still failing on my system where LC_CTYPE > only is set to utf-8 Oh yes, test_sys fails if LC_ALL or LC_CTYPE is a locale using a different encoding than ascii (eg. LC_ALL=fr_FR.utf8). Fixed by r84314. -- status: open -> closed ___

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-24 Thread R. David Murray
R. David Murray added the comment: test_sys is still failing on my system where LC_CTYPE only is set to utf-8. Victor, do you want me to apply the LANG->LC_ALL change to the test? -- status: closed -> open ___ Python tracker

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-24 Thread STINNER Victor
STINNER Victor added the comment: r84308 should fix the last problems on Mac OS X, FreeBSD and Solaris. The last failure on test_sys is on Windows with test_undecodable_code (TypeError: Type str doesn't support the buffer API), which is unrelated. Reopen the issue if you see new failures. --

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread R. David Murray
R. David Murray added the comment: Setting LC_ALL instead of LANG in the test fixes the problem. -- ___ Python tracker ___ ___ Python-

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread R. David Murray
R. David Murray added the comment: In an up to date checkout of py3k on Gentoo linux with LC_CTYPE=en_US.UTF-8, I get a failure in test_sys: == FAIL: test_pythonfsencoding (test.test_sys.SysModuleTest)

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread STINNER Victor
STINNER Victor added the comment: I'm working on a fix for test_sys failure. test_os should not fail anymore. -- ___ Python tracker ___ __

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-22 Thread Florent Xicluna
Florent Xicluna added the comment: This is still an issue on some buildbots: - since r84224 on OS X (PPC Leopard, x86 Tiger) - since r84182 on sparc solaris10 gcc, x86 FreeBSD, x86 FreeBSD 7.2 The issue was fixed in r84201, r84202, r84203 for OS X buildbots only, but since r84224 it is faili

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-20 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 19 août 2010 22:40:53, vous avez écrit : > Just please make sure that on other platforms such as BSD, Solaris, > AIX, etc. that don't have this special Python support > the env vars are honored. I added much more tests on the filesystem encoding: - (t

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >>> Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. >>> r84201 and r84202 fix test_sys, and r84203 fixes the documentation and >>> Python usage (hide PYTHONFSENCODING v

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread STINNER Victor
STINNER Victor added the comment: > > Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. > > r84201 and r84202 fix test_sys, and r84203 fixes the documentation and > > Python usage (hide PYTHONFSENCODING variable in Python help on Windows > > and Mac OS X). > > This has to

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. > r84201 and r84202 fix test_sys, and r84203 fixes the documentation and Python > usage (hide PYTHONFSENCODING varia

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-19 Thread STINNER Victor
STINNER Victor added the comment: Oh, I realized that PYTHONFSENCODING is ignored on Windows and Mac OS X. r84201 and r84202 fix test_sys, and r84203 fixes the documentation and Python usage (hide PYTHONFSENCODING variable in Python help on Windows and Mac OS X). We might allow to override th

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor
STINNER Victor added the comment: Commited to 3.2 as r84182. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> The command line -h explanation is missing from the patch. > > done > >> The documentation should mention that the env var is only >> read once; subsequent changes to the env var are not s

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor
STINNER Victor added the comment: > To remove sys.setfilesystemencoding(), ... I will open a new issue done, issue #9632 -- ___ Python tracker ___ __

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18562/pythonfsencoding.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread STINNER Victor
STINNER Victor added the comment: > The command line -h explanation is missing from the patch. done > The documentation should mention that the env var is only > read once; subsequent changes to the env var are not seen > by Python I copied the PYTHONIOENCODING doc which doesn't mention that.

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Here you have a patch. It adds tests in test_sys. > > The tests are skipped on a non-ascii Python executable path because of #8611 > (see #9425). Thanks for the patch. A couple of notes:

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-17 Thread STINNER Victor
STINNER Victor added the comment: Here you have a patch. It adds tests in test_sys. The tests are skipped on a non-ascii Python executable path because of #8611 (see #9425). -- keywords: +patch nosy: +pitrou Added file: http://bugs.python.org/file18562/pythonfsencoding.patch

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8622] Add PYTHONFSENCODING environment variable

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8622] Add PYTHONFSENCODING environment variable

2010-05-05 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : As discussed on issue8610, we need a way to override the automatic detection of the file system encoding - for much the same reasons we also do for the I/O encoding: the detection mechanism isn't fail-safe. We should add a new environment variable with