Normalize file name format in on disk db (fixes #479)
This commit is contained in:
13
files/filenames_unix.go
Normal file
13
files/filenames_unix.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build !windows,!darwin
|
||||
|
||||
package files
|
||||
|
||||
import "code.google.com/p/go.text/unicode/norm"
|
||||
|
||||
func normalizedFilename(s string) string {
|
||||
return norm.NFC.String(s)
|
||||
}
|
||||
|
||||
func nativeFilename(s string) string {
|
||||
return s
|
||||
}
|
||||
Reference in New Issue
Block a user