Skip to content
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

Perform filename normalization for diff #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shirayu
Copy link

@shirayu shirayu commented Oct 28, 2017

Currently a file named to ガールズ.txt is always synchronized with Mac OS which uses HFS+ file system.
This is because HFS+ file performs NFD like filename normalization.
is U+30AC in NFC and U+30AB U+3099 in NFD.

With this PR, adb-sync performs filename NFC normalization for diff as default.
With --no-file-name-normalize, it does not.

@divVerent
Copy link
Contributor

This is tricky - I don't think we should be munging file names by default.

One idea: check if the local file system does this, and only enable it if so.
Other idea: for now make it off by default.

@divVerent
Copy link
Contributor

BTW, while at it... could also try case folding as well, to better handle Windows systems. Also as an option.

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