1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Files
gnulib/tests/test-quotearg.sh
Bruno Haible 4baa767de8 quotearg test: Avoid test failure on mingw.
* tests/test-quotearg.sh: Convert the locale identifier from native
Windows syntax to Unix syntax.
2011-02-13 03:41:41 +01:00

27 lines
690 B
Bash
Executable File

#!/bin/sh
# Choose an existing locale. The locale encoding does not matter; see the
# comment in test-quotearg.po.
if test $LOCALE_FR_UTF8 != none; then
locale=$LOCALE_FR_UTF8
else
if test $LOCALE_FR != none; then
locale=$LOCALE_FR
else
locale=none
fi
fi
# Work around a limitation of gettext() on native Windows in gettext 0.18.1:
# the locale identifiers in the environment variables LC_ALL etc. have to
# be in Unix conventions, not in native Window conventions.
if test $locale = French_France.65001; then
locale=fr_FR.UTF-8
fi
if test $locale = French_France.1252; then
locale=fr_FR.CP1252
fi
LOCALE=$locale LOCALEDIR="$srcdir/locale" \
./test-quotearg${EXEEXT}