#! /bin/sh # Copyright (C) 2001, 2006, 2009-2016 Free Software Foundation, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. . "${srcdir=.}/init.sh"; path_prepend_ ../src cz=cs_CZ.UTF-8 # If cs_CZ.UTF-8 locale doesn't work, skip this test. LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q charmap.*UTF-8 \ || skip_ this system lacks the $cz locale # If matching is done in single-byte mode, skip this test too printf 'é\n' | LC_ALL=$cz grep -Eq '^[é]{2}$' case $? in 0) skip_ "built without multi-byte support";; 1) ;; *) fail_ "unexpected exit status: $?";; esac failures=0 cat > csinput < cspatfile <