gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / tests / test-quotearg.sh
index e050d07..4dd7188 100755 (executable)
@@ -12,5 +12,15 @@ else
   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}