Thanks, could you please try the attached patch? I installed it, as it's
clearly needed even if it doesn't fix this particular bug.
>From dc78127c83d36358bce500f08823533a3351c08d Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Sun, 7 Dec 2014 18:12:53 -0800
Subject: [PATCH] tests: port fmbtest to CentOS 6 and earlier
* tests/fmbtest: Port to platforms where the 'sed' pattern
'[^0-9]' does not match every non-digit character. Problem
reported by Norihiro Tanaka in: http://bugs.gnu.org/19293
---
tests/fmbtest | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/tests/fmbtest b/tests/fmbtest
index bfaf607..c4f8c88 100755
--- a/tests/fmbtest
+++ b/tests/fmbtest
@@ -53,21 +53,24 @@ EOF
for mode in F G E; do
test1=$(echo $(LC_ALL=$cz; export LC_ALL
- grep -${mode} -f cspatfile csinput | sed 's/[^0-9]/ /g'))
+ grep -${mode} -f cspatfile csinput |
+ sed 's/[^0123456789]/ /g'))
if test "$test1" != "11 12 13 14 15 16 17 18"; then
echo "Test #1 ${mode} failed: $test1"
failures=1
fi
test2=$(echo $(LC_ALL=$cz; export LC_ALL
- grep -${mode}i -f cspatfile csinput | sed 's/[^0-9]/ /g'))
+ grep -${mode}i -f cspatfile csinput |
+ sed 's/[^0123456789]/ /g'))
if test "$test2" != "01 02 07 08 10 11 12 13 14 15 16 17 18 19 20"; then
echo "Test #2 ${mode} failed: $test2"
failures=1
fi
test3=$(echo $(LC_ALL=$cz; export LC_ALL
- grep -${mode}i -e 'ÄÃÅ¡E' -e 'Äas' csinput | sed 's/[^0-9]/ /g'))
+ grep -${mode}i -e 'ÄÃÅ¡E' -e 'Äas' csinput |
+ sed 's/[^0123456789]/ /g'))
if test "$test3" != "01 02 07 08 10 11 12 13 14 15 16 17 18 19 20"; then
echo "Test #3 ${mode} failed: $test3"
failures=1
@@ -75,7 +78,8 @@ fi
# Skip the next test - known to fail. TAA.
#test4=$(echo $(LC_ALL=$cz; export LC_ALL
-# grep -${mode}iw -f cspatfile csinput | sed 's/[^0-9]/ /g'))
+# grep -${mode}iw -f cspatfile csinput |
+# sed 's/[^0123456789]/ /g'))
#if test "$test4" != "01 02 08 13 17 19"; then
# echo "Test #4 ${mode} failed: $test4"
# failures=1
@@ -115,7 +119,7 @@ for mode in G E; do
test8=$(echo $(LC_ALL=$cz; export LC_ALL
grep -${mode}i -e 'Ä.Å¡E' -e 'Ä[a-f]s' csinput |
- sed 's/[^0-9]/ /g'))
+ sed 's/[^0123456789]/ /g'))
if test "$test8" != "01 02 07 08 10 11 12 13 14 15 16 17 18 19 20"; then
echo "Test #8 ${mode} failed: $test8"
failures=1
--
1.9.3