Skip to content

Escape unicode filenames to fix incorrect mappings on some platforms#789

Closed
tlundeen wants to merge 1 commit intoJesusFreke:masterfrom
tlundeen:master
Closed

Escape unicode filenames to fix incorrect mappings on some platforms#789
tlundeen wants to merge 1 commit intoJesusFreke:masterfrom
tlundeen:master

Conversation

@tlundeen
Copy link
Copy Markdown

    //some filesystems treat different unicode characters as identical,
    //e.g. macOS treats Lo/ε (\u03b5) and Lo/ϵ (\u03f5) as the same character for filenames.
    //So escape packageElements strings to only use standard ascii

JesusFreke added a commit that referenced this pull request Feb 17, 2021
Some unicode characters are considered equivalent for filename purposes on mac.
This adds logic to treat these collisions the same way as case sensitivy
collisions are currently handled -- by adding a numeric suffix to the
file/directory anytime there is a collision.

See pull request #789 for more information.
@JesusFreke
Copy link
Copy Markdown
Owner

Hi, thanks for the report and pull request. I actually solved this problem slightly differently in 1e655c2, ensuring that this type of collision is handled the same as something like a collision due to case insensitivity.

@JesusFreke JesusFreke closed this Feb 17, 2021
@tlundeen
Copy link
Copy Markdown
Author

tlundeen commented Feb 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants