filenames_darwin.go 411 B

123456789101112131415
  1. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  2. // All rights reserved. Use of this source code is governed by an MIT-style
  3. // license that can be found in the LICENSE file.
  4. package files
  5. import "code.google.com/p/go.text/unicode/norm"
  6. func normalizedFilename(s string) string {
  7. return norm.NFC.String(s)
  8. }
  9. func nativeFilename(s string) string {
  10. return norm.NFD.String(s)
  11. }