[Python-Dev] test_unicode_file fails on Linux (original) (raw)
Hye-Shik Chang perky at i18n.org
Tue Jan 6 03:42:18 EST 2004
- Previous message: [Python-Dev] test_unicode_file fails on Linux
- Next message: [Python-Dev] test_unicode_file fails on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 06, 2004 at 07:22:52PM +1100, Mark Hammond wrote:
> The utime() call is failing for one of the Unicode file names. > > build> ./python ../Lib/test/testunicodefile.py > testdirectories (main.TestUnicodeFiles) ... ok > testequivalentfiles (main.TestUnicodeFiles) ... ok > testsinglefiles (main.TestUnicodeFiles) ... > '@test-\xc3\xa0\xc3\xb2' > '@test-\xc3\xa0\xc3\xb2' > u'@test-\xe0\xf2' > ERROR
By default, this test is working for me on Linux. I suspect it has to do with the fact that: [skip at bobcat build]$ ./python -c 'import sys;print sys.getfilesystemencoding()' UTF-8 By way of testing, I tried: [skip at bobcat build]$ export LANG=deDE [skip at bobcat build]$ ./python -c 'import sys;print sys.getfilesystemencoding()' ISO-8859-1 And the tests still succeeded. Trying to work with "ascii" as the encoding results in a 'TestSkipped' exception: [skip at bobcat build]$ export LANG=C [skip at bobcat build]$ ./python -c 'import sys;print sys.getfilesystemencoding()' ANSIX3.4-1968 [skip at bobcat build]$ ./python ../Lib/test/testunicodefile.py ... test.testsupport.TestSkipped: No Unicode filesystem semantics on this platform. I even managed to get my Windows 98 box on the network again, and this also seems to work for me from current CVS. I'm really not sure what I am missing....
I guess that I fixed it on Modules/posixmodule.c rev 2.310.
Hye-Shik
- Previous message: [Python-Dev] test_unicode_file fails on Linux
- Next message: [Python-Dev] test_unicode_file fails on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]