Merge branch 'tr/maint-parseopt-avoid-empty'
[gitweb.git] / t / test-lib.sh
index 81cf4dfb0481845df1ff7f53eebda786ef4f6d43..78c428619e99ea0225f61a1fe257e444d464ad0b 100644 (file)
@@ -670,6 +670,19 @@ test_lazy_prereq CASE_INSENSITIVE_FS '
        test "$(cat CamelCase)" != good
 '
 
+test_lazy_prereq UTF8_NFD_TO_NFC '
+       # check whether FS converts nfd unicode to nfc
+       auml=$(printf "\303\244")
+       aumlcdiar=$(printf "\141\314\210")
+       >"$auml" &&
+       case "$(echo *)" in
+       "$aumlcdiar")
+               true ;;
+       *)
+               false ;;
+       esac
+'
+
 # When the tests are run as root, permission tests will report that
 # things are writable when they shouldn't be.
 test -w / || test_set_prereq SANITY