Normalise path names for OSX local filesystem
Fixes #194 Fixes #451 Fixes #463
This commit is contained in:
committed by
Nick Craig-Wood
parent
1752ee3c8b
commit
7c01bbddf8
@@ -0,0 +1,12 @@
|
||||
// +build darwin
|
||||
|
||||
package local
|
||||
|
||||
import (
|
||||
"golang.org/x/text/unicode/norm"
|
||||
)
|
||||
|
||||
// normString normalises the remote name as some OS X denormalises UTF-8 when storing it to disk
|
||||
func normString(remote string) string {
|
||||
return norm.NFC.String(remote)
|
||||
}
|
||||
Reference in New Issue
Block a user