#!/bin/sh # Ensure that case-insensitive matching works with German eszett . "${srcdir=.}/init.sh"; path_prepend_ ../src require_en_utf8_locale_ require_compiled_in_MB_support fail=0 L=de_DE.UTF-8 ss=$(printf '\303\237') # lowercase eszett SS=$(printf '\341\272\236') # uppercase eszett # Ensure that this matches: # printf 'ß:SS ß:ẞ\n'|LC_ALL=de_DE.UTF-8 grep -i 'SS:ß ẞ:ß' data="$ss:SS $ss:$SS" search_str="SS:$ss $SS:$ss " printf "$data\n" > in || framework_failure_ for opt in -E -F -G; do LC_ALL=$L grep $opt -i "$search_str" in > out || fail=1 compare out in || fail=1 done Exit $fail