]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: set locale "LC_ALL=C" for sed.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 29 Jul 2014 21:05:32 +0000 (00:05 +0300)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 29 Jul 2014 21:05:32 +0000 (00:05 +0300)
This fixes test failure on MacOS X.

re2c/run_tests.sh.in

index 10b8206a9e581f1795ca8bfc2c4ea1023e420ca4..2ab4544f35f4e22d86dd72474e5d4657482f57fd 100644 (file)
@@ -49,7 +49,7 @@ for x in $tests; do
        outdiff=@builddir@/test/`basename ${x%.re}.c.diff`
        typname=@builddir@/test/`basename ${x%.re}.h.temp`
        typdiff=@builddir@/test/`basename ${x%.re}.h.diff`
-       $re2c $switches $x 2>&1 | sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
+       $re2c $switches $x 2>&1 | LC_ALL=C sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
        if test -n "$genname"; then
                cat $genname | sed -e 's,@builddir@/test/,,g' -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
                rm $genname