-
Notifications
You must be signed in to change notification settings - Fork 76
feat: add Unicode normalization for path handling and detect case-insensitive filename collisions #1621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ensitive filename collisions
@wolfv forgot to copy the case sensitive files to PREFIX folder :DD thankfully it passes now |
Alright, ubuntu passes, macos doesn't, i will need to check that out too |
@wolfv We cannot create the test files at all on mac os due to case insensivity, same as windows :/ even if i try to make a package it would fail sadly. but i think unit tests + e2e test working on linux could be enough? |
Sounds good indeed! |
fn test_find_case_insensitive_collisions_unicode() { | ||
let files = vec![ | ||
Path::new("foo/straße"), | ||
Path::new("foo/STRASSE"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these two (straße and STRASSE) would be the same on case-insensitive file systems.. or would they?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, they are! Just checked locally on macOS and this is true :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! I also checked İSTANBUL and istanbul as well, it should work correctly for all languages!
closes #1262 hopefully, i am only confident with unit tests but hopefully it passes mac os!