VirtualBox

source: kBuild/vendor/grep/3.7/gnulib-tests/test-iswdigit.sh@ 3529

Last change on this file since 3529 was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:executable set to *
File size: 952 bytes
Line 
1#!/bin/sh
2
3# Test in the POSIX locale.
4LC_ALL=C ${CHECKER} ./test-iswdigit${EXEEXT} 0 || exit 1
5LC_ALL=POSIX ${CHECKER} ./test-iswdigit${EXEEXT} 0 || exit 1
6
7# Test in an ISO-8859-1 or ISO-8859-15 locale.
8: ${LOCALE_FR=fr_FR}
9if test $LOCALE_FR != none; then
10 LC_ALL=$LOCALE_FR \
11 ${CHECKER} ./test-iswdigit${EXEEXT} 1 \
12 || exit 1
13fi
14
15# Test whether a specific EUC-JP locale is installed.
16: ${LOCALE_JA=ja_JP}
17if test $LOCALE_JA != none; then
18 LC_ALL=$LOCALE_JA \
19 ${CHECKER} ./test-iswdigit${EXEEXT} 2 \
20 || exit 1
21fi
22
23# Test whether a specific UTF-8 locale is installed.
24: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
25if test $LOCALE_FR_UTF8 != none; then
26 LC_ALL=$LOCALE_FR_UTF8 \
27 ${CHECKER} ./test-iswdigit${EXEEXT} 3 \
28 || exit 1
29fi
30
31# Test whether a specific GB18030 locale is installed.
32: ${LOCALE_ZH_CN=zh_CN.GB18030}
33if test $LOCALE_ZH_CN != none; then
34 LC_ALL=$LOCALE_ZH_CN \
35 ${CHECKER} ./test-iswdigit${EXEEXT} 4 \
36 || exit 1
37fi
38
39exit 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