]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid test failure on mingw.
authorBruno Haible <bruno@clisp.org>
Fri, 19 Oct 2007 20:55:58 +0000 (20:55 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:20 +0000 (12:15 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/format-perl-mixed-1
gettext-tools/tests/plural-1

index 8be2cce14afa15f8e6062da12953ce3905ead295..b38643b576e8f3383e6810e4bd5bd8103fa1bb0d 100644 (file)
@@ -18,6 +18,7 @@
        * xgettext-python-3: Likewise.
        * xgettext-stringtable-1: Likewise.
        * xgettext-tcl-1: Likewise.
+       * plural-1: Convert CR/LF to LF before applying DIFF.
 
 2007-10-09  Bruno Haible  <bruno@clisp.org>
 
index 3b3a84b89b86db8763008b0a8f413a9b0d72e907..6f1210417bb07bdf56f00740f76cd67a8b202110 100755 (executable)
@@ -44,7 +44,7 @@ EOF
   fail=
   if test -n "${formats}"; then
     # Verify that the first line contains the expected #, comment.
-    if sed 1q < f-pm-1-$n.po | grep '^'"${formats}"'$' > /dev/null; then
+    if sed 1q < f-pm-1-$n.po | tr -d '\r' | grep '^'"${formats}"'$' > /dev/null; then
       :
     else
       fail=yes
index 7dcedb915927a81badb016408763b3349ee56c0c..f62807c79162926f40c4eab34fb92d43b7cfe6f8 100755 (executable)
@@ -62,16 +62,19 @@ sed 1,2d < fr.po > fr.po.strip
 : ${DIFF=diff}
 ${DIFF} fr.po.strip fr.po.un || exit 1
 
-tmpfiles="$tmpfiles cake.ok cake.out"
+tmpfiles="$tmpfiles cake.ok cake.tmp cake.out"
 : ${DIFF=diff}
 echo 'un morceau de gateau' > cake.ok
-LANGUAGE= ./cake fr 1 > cake.out || exit 1
+LANGUAGE= ./cake fr 1 > cake.tmp || exit 1
+tr -d '\r' < cake.tmp > cake.out || exit 1
 ${DIFF} cake.ok cake.out || exit 1
 echo '2 morceaux de gateau' > cake.ok
-LANGUAGE= ./cake fr 2 > cake.out || exit 1
+LANGUAGE= ./cake fr 2 > cake.tmp || exit 1
+tr -d '\r' < cake.tmp > cake.out || exit 1
 ${DIFF} cake.ok cake.out || exit 1
 echo '10 morceaux de gateau' > cake.ok
-LANGUAGE= ./cake fr 10 > cake.out || exit 1
+LANGUAGE= ./cake fr 10 > cake.tmp || exit 1
+tr -d '\r' < cake.tmp > cake.out || exit 1
 ${DIFF} cake.ok cake.out || exit 1
 
 rm -fr $tmpfiles