File: test-setlocale2.sh

package info (click to toggle)
diffutils 1%3A3.2-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,352 kB
  • sloc: ansic: 20,556; sh: 9,418; perl: 450; makefile: 160; sed: 54
file content (15 lines) | stat: -rwxr-xr-x 579 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Test locale names with likely unsupported encoding in Unix syntax.
for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do
  LC_ALL=$name ./test-setlocale2${EXEEXT} 1 || exit 1
done

# Test locale names with likely unsupported encoding in native Windows syntax.
for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \
            French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \
            Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do
  LC_ALL=$name ./test-setlocale2${EXEEXT} 1 || exit 1
done

exit 0