Skip to content

os.path.walk and non-ascii dirnames on MacOSX #38083

Closed

Description

@jackjansen
BPO 696261
Nosy @jackjansen

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 = <Date 2003-03-03.12:15:41.000>
created_at = <Date 2003-03-02.23:26:08.000>
labels = ['OS-mac']
title = 'os.path.walk and non-ascii dirnames on MacOSX'
updated_at = <Date 2003-03-03.12:15:41.000>
user = 'https://github.com/jackjansen'

bugs.python.org fields:

activity = <Date 2003-03-03.12:15:41.000>
actor = 'jackjansen'
assignee = 'jackjansen'
closed = True
closed_date = None
closer = None
components = ['macOS']
creation = <Date 2003-03-02.23:26:08.000>
creator = 'jackjansen'
dependencies = []
files = []
hgrepos = []
issue_num = 696261
keywords = []
message_count = 3.0
messages = ['14912', '14913', '14914']
nosy_count = 2.0
nosy_names = ['jackjansen', 'jvr']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue696261'
versions = []

Activity

  1. jackjansen commented on Mar 2, 2003

    @jackjansen
    MemberAuthor

    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.

  2. self-assigned this
    on Mar 2, 2003
  3. self-assigned this
    on Mar 2, 2003
  4. jvr commented on Mar 3, 2003

    jvrmannequin
    Mannequin

    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.

  5. jackjansen commented on Mar 3, 2003

    @jackjansen
    MemberAuthor

    Logged In: YES
    user_id=45365

    Closing this, the discussion now takes place in bpo-683592.

  6. transferred this issue fromon Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions