Mercurial > hg > octave-lyh > gnulib-hg
changeset 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 | 79ce823766c3 |
children | b8a7de52bf47 |
files | ChangeLog tests/test-quotearg.sh |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-02-12 Bruno Haible <bruno@clisp.org> + + quotearg test: Avoid test failure on mingw. + * tests/test-quotearg.sh: Convert the locale identifier from native + Windows syntax to Unix syntax. + 2011-02-12 Bruno Haible <bruno@clisp.org> setlocale: Prefer gnulib's override over libintl's override.
--- a/tests/test-quotearg.sh +++ b/tests/test-quotearg.sh @@ -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}