]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a test suite failure on platforms that have a gl_IE locale.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2009 13:10:40 +0000 (13:10 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:59 +0000 (12:15 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/msginit-1

index ced313f81f63a364442ab0071697c127c570fef2..b87fac300820ad9da5dbba71f96d45301a6f4155 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid a test suite failure on platforms that have a gl_IE locale.
+       * msginit-1: Normalize the charset of the generated PO file.
+
 2008-10-04  Bruno Haible  <bruno@clisp.org>
 
        * msgfmt-17: New file.
index ac96164c7004082cdde9a79af849ad476e667e16..3625397ab96819006cc552bd6855e44d1bc4407a 100755 (executable)
@@ -44,7 +44,9 @@ tmpfiles="$tmpfiles mi-test1.tmp mi-test1.out mi-test1.err"
 : ${MSGINIT=msginit}
 ${MSGINIT} -i mi-test1.pot -l ga_IE --no-translator -o mi-test1.tmp 2>mi-test1.err
 test $? = 0 || { cat mi-test1.err 1>&2; rm -fr $tmpfiles; exit 1; }
-sed -e '1,10d' < mi-test1.tmp | LC_ALL=C tr -d '\r' > mi-test1.out
+# The charset stored in the header entry is the locale encoding of the gl_IE
+# locale, which is system dependent, or ASCII if the locale does not exist.
+sed -e '1,10d' -e 's/\(ISO-8859-1\|UTF-8\)/ASCII/g' < mi-test1.tmp | LC_ALL=C tr -d '\r' > mi-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mi-test1.ok"