Issue1520

classification
Title: UnicodeDecodeError
Type: crash Severity: normal
Components: Core Versions: 2.5.0
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ssteiner
Priority: Keywords:

Created on 2009-12-08.13:22:11 by ssteiner, last changed 2009-12-10.13:02:06 by ssteiner.

Messages
msg5361 (view) Author: simon steiner (ssteiner) Date: 2009-12-08.13:22:10
import os

os.mkdir('test_unicode')
open(u'test_unicode/test_\u00e9.txt', 'w').close()

for dirpath, subdirs, files in os.walk(unicode(r'test_unicode')):
    print dirpath
    print subdirs
    print files
msg5366 (view) Author: simon steiner (ssteiner) Date: 2009-12-09.11:53:42
in os.py

- return [asPyString(entry) for entry in l]
+ return l
msg5374 (view) Author: simon steiner (ssteiner) Date: 2009-12-10.13:02:06
should be

- return [asPyString(entry) for entry in l]
+ return [entry for entry in l]
History
Date User Action Args
2009-12-10 13:02:06ssteinersetmessages: + msg5374
2009-12-09 11:53:42ssteinersetmessages: + msg5366
2009-12-08 13:22:11ssteinercreate