[Python-bugs-list] [ python-Bugs-696261 ] os.path.walk and non-ascii dirnames on MacOSX

SourceForge.net noreply@sourceforge.net
Mon, 03 Mar 2003 04:15:41 -0800


Bugs item #696261, was opened at 2003-03-03 00:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=696261&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: os.path.walk and non-ascii dirnames on MacOSX

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-03-03 13:15

Message:
Logged In: YES 
user_id=45365

Closing this, the discussion now takes place in #683592.

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-03-03 13:15

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=696261&group_id=5470