Enforce correct filename normalization (fixes #96)
This commit is contained in:
11
cmd/syncthing/normalize_darwin.go
Normal file
11
cmd/syncthing/normalize_darwin.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//+build darwin
|
||||
|
||||
package main
|
||||
|
||||
import "code.google.com/p/go.text/unicode/norm"
|
||||
|
||||
// FSNormalize returns the string with the required unicode normalization for
|
||||
// the host operating system.
|
||||
func FSNormalize(s string) string {
|
||||
return norm.NFD.String(s)
|
||||
}
|
||||
Reference in New Issue
Block a user