You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os.path.walk and non-ascii dirnames on MacOSX #38083
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/jackjansen'closed_at=<Date2003-03-03.12:15:41.000>created_at=<Date2003-03-02.23:26:08.000>labels= ['OS-mac']
title='os.path.walk and non-ascii dirnames on MacOSX'updated_at=<Date2003-03-03.12:15:41.000>user='https://github.com/jackjansen'
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.
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 bpo-683592.
Activity
jackjansen commentedon Mar 2, 2003
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.
jvr commentedon Mar 3, 2003
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 bpo-683592.
jackjansen commentedon Mar 3, 2003
Logged In: YES
user_id=45365
Closing this, the discussion now takes place in bpo-683592.