Blame gnulib-tests/test-setlocale2.sh

Packit Service fdd496
#!/bin/sh
Packit Service fdd496
Packit Service fdd496
# Test locale names with likely unsupported encoding in Unix syntax.
Packit Service fdd496
for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do
Packit Service fdd496
  env LC_ALL=$name ./test-setlocale2${EXEEXT} 1 || exit 1
Packit Service fdd496
done
Packit Service fdd496
Packit Service fdd496
# Test locale names with likely unsupported encoding in native Windows syntax.
Packit Service fdd496
for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \
Packit Service fdd496
            French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \
Packit Service fdd496
            Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do
Packit Service fdd496
  # Here we use 'env' to set the LC_ALL environment variable, because on
Packit Service fdd496
  # Solaris 11 2011-11, the /bin/sh refuses to do it for Turkish_Turkey.65001.
Packit Service fdd496
  env LC_ALL="$name" ./test-setlocale2${EXEEXT} 1 || exit 1
Packit Service fdd496
done
Packit Service fdd496
Packit Service fdd496
exit 0