diff tests/test-quotearg.sh @ 14340:80ac14ef4e0b

quotearg test: Avoid test failure on mingw. * tests/test-quotearg.sh: Convert the locale identifier from native Windows syntax to Unix syntax.
author Bruno Haible <bruno@clisp.org>
date Sun, 13 Feb 2011 03:41:41 +0100
parents fc5faccd30e7
children 8c1a17df67e0
line wrap: on
line diff
--- a/tests/test-quotearg.sh	Sun Feb 13 03:39:33 2011 +0100
+++ b/tests/test-quotearg.sh	Sun Feb 13 03:41:41 2011 +0100
@@ -12,5 +12,15 @@
   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}