filenames_unix.go 460 B

12345678910111213141516171819
  1. // Copyright (C) 2014 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at http://mozilla.org/MPL/2.0/.
  6. // +build !windows,!darwin
  7. package osutil
  8. import "golang.org/x/text/unicode/norm"
  9. func NormalizedFilename(s string) string {
  10. return norm.NFC.String(s)
  11. }
  12. func NativeFilename(s string) string {
  13. return s
  14. }