VirtualBox

source: kBuild/vendor/grep/2.12/gnulib-tests/test-setlocale2.sh

Last change on this file was 2595, checked in by bird, 13 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

  • Property svn:eol-style set to native
File size: 741 bytes
Line 
1#!/bin/sh
2
3# Test locale names with likely unsupported encoding in Unix syntax.
4for name in ar_SA.ISO-8859-1 fr_FR.CP1251 zh_TW.GB18030 zh_CN.BIG5; do
5 env LC_ALL=$name ./test-setlocale2${EXEEXT} 1 || exit 1
6done
7
8# Test locale names with likely unsupported encoding in native Windows syntax.
9for name in "Arabic_Saudi Arabia.1252" "Arabic_Saudi Arabia.65001" \
10 French_France.65001 Japanese_Japan.65001 Turkish_Turkey.65001 \
11 Chinese_Taiwan.65001 Chinese_China.54936 Chinese_China.65001; do
12 # Here we use 'env' to set the LC_ALL environment variable, because on
13 # Solaris 11 2011-11, the /bin/sh refuses to do it for Turkish_Turkey.65001.
14 env LC_ALL="$name" ./test-setlocale2${EXEEXT} 1 || exit 1
15done
16
17exit 0
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette