[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-quotearg: work around gettext limitation
From: |
Bruno Haible |
Subject: |
test-quotearg: work around gettext limitation |
Date: |
Sun, 13 Feb 2011 03:45:55 +0100 |
User-agent: |
KMail/1.9.9 |
On mingw, I'm seeing this test failure:
FAIL: test-quotearg.sh
The reason is that when LC_ALL is set to French_France.1252, gettext()
looks up the message catalog in $localedir/French/LC_MESSAGES/ but it is
actually in $localedir/fr/LC_MESSAGES. In other words, the localename.c
copy in libintl ought to convert "French_France.1252" to "fr_FR.CP1252".
But until this is fixed, we have to work around it in gnulib:
2011-02-12 Bruno Haible <address@hidden>
quotearg test: Avoid test failure on mingw.
* tests/test-quotearg.sh: Convert the locale identifier from native
Windows syntax to Unix syntax.
--- tests/test-quotearg.sh.orig Sun Feb 13 03:19:47 2011
+++ tests/test-quotearg.sh Sun Feb 13 03:13:31 2011
@@ -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}
--
In memoriam France Bloch-Sérazin
<http://en.wikipedia.org/wiki/France_Bloch-Sérazin>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- test-quotearg: work around gettext limitation,
Bruno Haible <=