+2009-08-30 Bruno Haible <bruno@clisp.org>
+
+ Fix a test failure on Solaris.
+ * msgexec-2 (TR): New variable.
+
2009-08-15 Bruno Haible <bruno@clisp.org>
* msgunfmt-tcl-1: Explain that this test fails on mingw.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
+# Find a 'tr' program that supports NUL bytes in the input.
+# Solaris /usr/bin/tr does not.
+if test -f /usr/xpg6/bin/tr; then
+ TR=/usr/xpg6/bin/tr
+else
+ if test -f /usr/xpg4/bin/tr; then
+ TR=/usr/xpg4/bin/tr
+ else
+ TR=tr
+ fi
+fi
+
tmpfiles="$tmpfiles mex-test2.po"
cat <<\EOF > mex-test2.po
# HEADER.
result=$?
cat mex-test2.err | grep -v 'warning: Locale charset' | grep -v '^ '
test $result = 0 || { rm -fr $tmpfiles; exit 1; }
-LC_ALL=C tr -d '\r' < mex-test2.tmp > mex-test2.out
+LC_ALL=C $TR -d '\r' < mex-test2.tmp > mex-test2.out
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
: ${CMP=cmp}