This repository was archived by the owner on Sep 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 534
Character normalization bug #495
Labels
Comments
|
Interesting. I get:
|
wow, this is very weird, maybe is related with macOS?
|
Seems like it might be related. I'm doing some testing. |
I think we'd need to use something like https://godoc.org/golang.org/x/text/unicode/norm to detect equivalent filenames. |
mcarmonaa
pushed a commit
to mcarmonaa/go-git
that referenced
this issue
Aug 4, 2017
Some multibyte characters can have multiple representations. Before comparing strings, we need to normalize them. In this case we're normalizing to normalized form C, but it shouldn't matter as long as both strings are normalized to the same form. Fixes src-d#495
traidare
pushed a commit
to traidare/go-git
that referenced
this issue
Oct 26, 2024
Some multibyte characters can have multiple representations. Before comparing strings, we need to normalize them. In this case we're normalizing to normalized form C, but it shouldn't matter as long as both strings are normalized to the same form. Fixes src-d/go-git#495
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There seems to be a normalization bug in the
Status()
function. I put together a gist to demonstrate the issue.If you run
git status
after that, you'll see there's a new file with a different name, though it's rendered as the same character as another filename that already exists.https://en.wikipedia.org/wiki/Unicode_equivalence#Normalization
The text was updated successfully, but these errors were encountered: