summaryrefslogtreecommitdiff
path: root/gnulib/tests/test-quotearg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/tests/test-quotearg.sh')
m---------gnulib0
-rwxr-xr-xgnulib/tests/test-quotearg.sh26
2 files changed, 26 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/tests/test-quotearg.sh b/gnulib/tests/test-quotearg.sh
new file mode 100755
index 0000000..4dd7188
--- /dev/null
+++ b/gnulib/tests/test-quotearg.sh
@@ -0,0 +1,26 @@
+#!/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}