strtod, strtold: Use the locale's decimal point.
[gnulib.git] / tests / test-strtod1.sh
blobd220f13a1b84e164d39339457639d080e26e2656
1 #!/bin/sh
3 : ${LOCALE_FR=fr_FR}
4 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
6 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
7 if test -f /usr/bin/localedef; then
8 echo "Skipping test: no locale for testing is installed"
9 else
10 echo "Skipping test: no locale for testing is supported"
12 exit 77
15 if test $LOCALE_FR != none; then
16 LC_ALL=$LOCALE_FR ./test-strtod1${EXEEXT} || exit 1
19 if test $LOCALE_FR_UTF8 != none; then
20 LC_ALL=$LOCALE_FR_UTF8 ./test-strtod1${EXEEXT} || exit 1
23 exit 0