-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug] unicode normalization problem #444
Comments
Voting up. |
+1 |
1 similar comment
+1 |
Any updates? |
How is that supposed to be fixed? Do other MacOS applications work properly? |
@DanPristupov I find another git repo issue like this problem
|
simply in swift, just make sure always use NFC encoding from user input like commit message and file path let nfd = "맥과 윈도우즈는 한글 저장방식이 다릅니다.ext" // string by user input
let nfc = nfd.precomposedStringWithCanonicalMapping // converting to nfc
// now, you can use `nfc` instead of `nfd` little more detailed in |
@alkee good infomation 👍 |
I'm still not really sure why the problem happens and what should be a correct solution for that (from the Apple point of view). Are developers supposed to convert every input string? What will happen with other languages after that? However I made a small test. Made a However passing strings in nfc form (using precomposedStringWithCanonicalMapping) to git process doesn't change anything (I used Docs (https://developer.apple.com/documentation/foundation/nstask/1414375-launchedtaskwithlaunchpath).
|
Sorry for the not worked way. It's OS specific behavior for unicode, so there is no correct solution. In the point of git (not an Apple), they support configuration for the issue. Can you test one more thing with the git config core.precomposeunicode ?
It worked well with terminal git and happy to other platforms. |
@DanPristupov i use to same sentence.
|
@alkee "core.precomposeunicode" config is affects filenames.
so... i think its not working.. :( |
@DanPristupov
so === |
@DanPristupov |
I will not wrap every git request into an However I want to try to pass the commit message using |
@DanPristupov ==== https://gist.github.com/GomPam/a801af883073f2cbad5747de5eca6443 |
Is #656 the same problem? |
@hrs-o |
@DanPristupov when do you plan to include this issue in the milestone? |
+1 |
Hi. Could you try if the problem is fixed in that version (1.0.87.5): https://fork.dev/update/files/Fork.dmg? It's not available for update yet. |
@DanPristupov its probably successfully working! Commit Message:
Thanks, @DanPristupov |
Let's wait for the 1.0.88 update. I'm not sure if this change will not make any problems for other users. However unicode docs (http://www.unicode.org/faq/normalization.html#2) say it should be OK:
|
I just released 1.0.88. Could you double check that everything still works please? |
yes~ it is fixed. awesome~ |
@DanPristupov commit on mac (fork 1.0.88) |
It works perfectly! Thank you very much! |
mac use to NFD and windows is NFC mechanism. so, we get this normaliztion problem.
user text (like commit message, author..) display different between mac and windows if not used alphabet.
can you fix it?
Link: https://en.wikipedia.org/wiki/Unicode_equivalence
The text was updated successfully, but these errors were encountered: