[issue7669] test_unicode_file fails with non-ascii path

2010-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: See #3426. -- priority: -> normal resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7669] test_unicode_file fails with non-ascii path

2010-01-12 Thread Ezio Melotti
Ezio Melotti added the comment: This is because in "path = join(os.getcwd(), path)" os.getcwd() returns a non-ascii byte string and path is unicode, so the cwd is implicitly decoded with the ascii codec in join and the error is raised. Using getcwdu() when the path is unicode seems to fix the

[issue7669] test_unicode_file fails with non-ascii path

2010-01-10 Thread Florent Xicluna
New submission from Florent Xicluna : /tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_unicode_file test_unicode_file test test_unicode_file failed -- Traceback (most recent call last): File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 173, in test_single_files self._tes