summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-08-13 22:16:54 +0200
committerBruno Haible <bruno@clisp.org>2009-08-13 22:16:54 +0200
commit5e12667722432313e22a390abde5e237349640cf (patch)
treedd695a62cfe2d569bfacf8679e1a0a9c70deaa7d
parenta1d8f391b409a3b6d19ae8f953d11ac3ca03e11c (diff)
downloadexternal_gettext-5e12667722432313e22a390abde5e237349640cf.zip
external_gettext-5e12667722432313e22a390abde5e237349640cf.tar.gz
external_gettext-5e12667722432313e22a390abde5e237349640cf.tar.bz2
Explain why the msgexec-4 test fails on mingw.
-rw-r--r--gettext-tools/tests/ChangeLog2
-rwxr-xr-xgettext-tools/tests/msgexec-413
2 files changed, 14 insertions, 1 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index e113d78..268ceea 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -2,7 +2,7 @@
* msgexec-1: Filter out msgexec's warning about locale charset.
* msgexec-2: Likewise.
- * msgexec-4: Likewise.
+ * msgexec-4: Likewise. Explain why this test fails on mingw.
2009-08-10 Bruno Haible <bruno@clisp.org>
diff --git a/gettext-tools/tests/msgexec-4 b/gettext-tools/tests/msgexec-4
index e80bcbe..9683b40 100755
--- a/gettext-tools/tests/msgexec-4
+++ b/gettext-tools/tests/msgexec-4
@@ -2,6 +2,19 @@
# Test msgexec on a PO file with contexts.
+# This test fails on mingw (in a Cygwin environment), due to the combination
+# of two reasons:
+# 1. The value of the environment variable MSGEXEC_MSGCTXT is stored
+# in UTF-8 encoding (i.e. the PO file's encoding); it should be stored
+# in the GetACP() encoding instead. This problem is inherent in msgexec,
+# and msgexec warns about it - but in this test, we filter the warnings
+# away.
+# 2. The child process is Cygwin's sh.exe, and is affected by a Cygwin bug:
+# the values returned by getenv() in the child process, when the parent
+# process is a mingw program, are in the GetOEMCP() encoding (should be
+# in the GetACP() encoding). This has been reported at
+# <http://cygwin.com/ml/cygwin/2009-08/msg00430.html>.
+
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15