Normalize file name format in on disk db (fixes #479)

This commit is contained in:
Jakob Borg
2014-08-15 12:52:16 +02:00
parent 50f0097843
commit ace87ad7bb
4 changed files with 82 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
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 norm.NFD.String(s)
}