classification
Title: os.path.walk and non-ascii dirnames on MacOSX
Type: Stage:
Components: Macintosh Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, jvr (2)
Priority: normal Keywords

Created on 2003-03-02 23:26 by jackjansen, last changed 2003-03-03 12:15 by jackjansen.

Messages (3)
msg14912 - (view) Author: Jack Jansen (jackjansen) Date: 2003-03-02 23:26
os.path.walk will fail if it encounters a non-ascii directory name.
The listdir() in the previous iteration will return the directory as a unicode string, but the next iteration will fail on that same unicode string.

There is probably something wrong with the file system encoding used on Mac OS X.
msg14913 - (view) Author: Just van Rossum (jvr) Date: 2003-03-03 12:15
Logged In: YES 
user_id=92689

No, the problem is that os.listdir() doesn't do the right thing with Unicode strings. I have a fix here but I need to rebuild and test. I also need to think about MvL's comment on patch #683592.
msg14914 - (view) Author: Jack Jansen (jackjansen) Date: 2003-03-03 12:15
Logged In: YES 
user_id=45365

Closing this, the discussion now takes place in #683592.
History
Date User Action Args
2003-03-02 23:26:08jackjansencreate