diffutils/tests/ignore-case
Bruno Haible d7588ed774 tests: Fix ignore-case failure on several platforms
* tests/ignore-case: Don't compare 'Ⓐ' with 'ⓐ'; this doesn't work on
NetBSD 10.0 and Solaris 11.4. Don't compare 'Ꞻ' with 'ꞻ'; this doesn't
work on CentOS 7, macOS, and Solaris 11 OmniOS.
2024-06-11 15:21:13 -07:00

27 lines
482 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# Test ignoring case
. "${srcdir=.}/init.sh"; path_prepend_ ../src
fail=0
printf 'Funky Stuff\n' >a
printf 'fUNKy stuFf\n' >b
diff -i a b >out || fail=1
compare /dev/null out || fail=1
require_utf8_locale_
echo 'AĀȀΆΑАӐḀἈ𐐀-Δ' >a
echo 'aāȁάαаӑḁἀ𐐨-δ' >b
diff -i a b >out || fail=1
compare /dev/null out || fail=1
mkdir d || framework_failure_
touch f d/F || framework_failure_
diff --ignore-file-name-case f d || fail=1
Exit $fail