Skip to content

Incorrect conversion path case with german character #87563

Description

@voramva
mannequin
BPO 43397
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba
Superseder
  • bpo-42658: os.path.normcase() is inconsistent with Windows file system
  • 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 = None
    closed_at = <Date 2021-03-09.15:06:51.491>
    created_at = <Date 2021-03-04.09:42:06.273>
    labels = ['type-bug', '3.8', 'OS-windows']
    title = 'Incorrect conversion path case with german character'
    updated_at = <Date 2021-03-09.15:06:51.487>
    user = 'https://bugs.python.org/voramva'

    bugs.python.org fields:

    activity = <Date 2021-03-09.15:06:51.487>
    actor = 'eryksun'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-03-09.15:06:51.491>
    closer = 'eryksun'
    components = ['Windows']
    creation = <Date 2021-03-04.09:42:06.273>
    creator = 'voramva'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43397
    keywords = []
    message_count = 3.0
    messages = ['388079', '388350', '388364']
    nosy_count = 6.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'voramva']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '42658'
    type = 'behavior'
    url = 'https://bugs.python.org/issue43397'
    versions = ['Python 3.8']

    Activity

    1. voramva commented on Mar 4, 2021

      voramvamannequin
      MannequinAuthor

      I try to normalize case for path with german characters:

      >os.path.normcase(r'c:\asd\ASDẞ')
      'c:\\asd\\asdß'
      

      But in OS Windows r'c:\asd\ASDẞ' and r'c:\asd\asdß' are different paths.

    2. voramva commented on Mar 9, 2021

      voramvamannequin
      MannequinAuthor
    3. eryksun commented on Mar 9, 2021

      @eryksun
      Contributor

      ntpath.normcase() needs a platform-dependent implementation that calls LCMapStringEx() in Windows, in order to properly agree with case-insensitive Windows filesystems. See bpo-42658.

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

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions