bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 3.4.90 released [beta]


From: Akim Demaille
Subject: Re: Bison 3.4.90 released [beta]
Date: Fri, 1 Nov 2019 09:35:49 +0100

Hi Denis,

Thanks for the various reports.  I'll install these.  Cheers!


commit e292c39e9563ae72ad7b7b377ba17f774b72b976
Author: Akim Demaille <address@hidden>
Date:   Fri Nov 1 08:36:52 2019 +0100

    tests: be robust to tput errors
    
    Reported by Denis Excoffier.
    
    * tests/bison.in: here.

diff --git a/tests/bison.in b/tests/bison.in
index 31087f2b..98be0118 100644
--- a/tests/bison.in
+++ b/tests/bison.in
@@ -37,7 +37,7 @@ fi
 # We redirect stderr, which breaks the computation of the terminal
 # screen width.  So export COLUMNS to Bison, hoping for the shell to
 # have defined it.
-: ${COLUMNS=`tput cols || echo 132`}
+: ${COLUMNS=`(tput cols) 2>/dev/null || echo 132`}
 export COLUMNS
 $PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
 status=$?



commit 0a75c65a423f9a68e4ff1e0e352a33a2d6214a88
Author: Akim Demaille <address@hidden>
Date:   Fri Nov 1 08:39:00 2019 +0100

    tests: fix comment and adjust to locale names on GNU/Linux
    
    Reported by Denis Excoffier.
    
    * tests/diagnostics.at: here.

diff --git a/tests/diagnostics.at b/tests/diagnostics.at
index 70ba63fb..1a4f4119 100644
--- a/tests/diagnostics.at
+++ b/tests/diagnostics.at
@@ -1,4 +1,4 @@
-# Checking diagnotics.                               -*- Autotest -*-
+# Checking diagnostics.                              -*- Autotest -*-
 
 # Copyright (C) 2019 Free Software Foundation, Inc.
 
@@ -30,7 +30,8 @@ AT_KEYWORDS([diagnostics])
 
 # We need UTF-8 support for correct screen-width computation of UTF-8
 # characters.  Skip the test if not available.
-AT_SKIP_IF([! locale -a | grep '^en_US.UTF-8$'])
+locale=`locale -a | $EGREP '^en_US\.(UTF-8|utf8)$' | sed 1q`
+AT_SKIP_IF([test x == x"$locale"])
 
 AT_BISON_OPTION_PUSHDEFS
 
@@ -45,7 +46,7 @@ fi
 
 AT_DATA([experr], [$4])
 
-AT_CHECK([LC_ALL=en_US.UTF-8 $5 bison -fcaret --color=debug -Wall input.y], 
[$3], [], [experr])
+AT_CHECK([LC_ALL="$locale" $5 bison -fcaret --color=debug -Wall input.y], 
[$3], [], [experr])
 
 # When no style, same messages, but without style.
 AT_PERL_REQUIRE([-pi -e 's{(</?(-|\w)+>)}{ $[]1 eq "<tag>" ? $[]1 : "" }ge' 
experr])
@@ -53,7 +54,7 @@ AT_PERL_REQUIRE([-pi -e 's{(</?(-|\w)+>)}{ $[]1 eq "<tag>" ? 
$[]1 : "" }ge' expe
 # Cannot use AT_BISON_CHECK easily as we need to change the
 # environment.
 # FIXME: Enhance AT_BISON_CHECK.
-AT_CHECK([LC_ALL=en_US.UTF-8 $5 bison -fcaret -Wall input.y], [$3], [], 
[experr])
+AT_CHECK([LC_ALL="$locale" $5 bison -fcaret -Wall input.y], [$3], [], [experr])
 
 
 AT_BISON_OPTION_POPDEFS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]