This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2003-03-02 23:26 by jackjansen, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (3)
msg14912 - (view) Author: Jack Jansen (jackjansen) * (Python committer) 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) * (Python triager) 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) * (Python committer) 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
2022-04-10 16:07:17adminsetgithub: 38083
2003-03-02 23:26:08jackjansencreate