filenames_unix.go 492 B

1234567891011121314151617181920
  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 https://mozilla.org/MPL/2.0/.
  6. //go:build !windows && !darwin
  7. // +build !windows,!darwin
  8. package osutil
  9. import "golang.org/x/text/unicode/norm"
  10. func NormalizedFilename(s string) string {
  11. return norm.NFC.String(s)
  12. }
  13. func NativeFilename(s string) string {
  14. return s
  15. }