Make test-quotearg work on MacOS X and AIX.
[gnulib.git] / tests / test-quotearg.sh
diff --git a/tests/test-quotearg.sh b/tests/test-quotearg.sh
new file mode 100755 (executable)
index 0000000..e050d07
--- /dev/null
@@ -0,0 +1,16 @@
+#!/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
+
+LOCALE=$locale LOCALEDIR="$srcdir/locale" \
+./test-quotearg${EXEEXT}