VirtualBox

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