christian fafard wrote:
I suggest changing the regular expression to accept both a leading backtick and
a leading single quote.
\` become [\`']
That would require assuming a UTF-8 locale, or some locale compatible with
UTF-8. Although this is a reasonably safe assumption nowadays, it's more
conservative to run libtoolize in the C locale, so that we don't have to worry
about locale encoding when doing the test. So I installed the attached patch
instead; please give it a try.
>From ed9031df1361c484f292551481aebc724d1ed40c Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sat, 5 Sep 2015 07:55:52 -0700
Subject: [PATCH] tests: port to recent libtool diagnostics
Problem reported by Christian Fafard in:
http://lists.gnu.org/archive/html/bug-autoconf/2015-09/msg00009.html
* tests/foreign.at (libtool): Run the scripts in the C locale,
so that we need not worry about localized quotes in their output.
---
tests/foreign.at | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/foreign.at b/tests/foreign.at
index f895dbf..986062a 100644
--- a/tests/foreign.at
+++ b/tests/foreign.at
@@ -49,10 +49,10 @@ AT_DATA([configure.ac],
AC_CONFIG_AUX_DIR([.])
AC_PROG_LIBTOOL
]])
-AT_CHECK([libtoolize -i], [0], [stdout], [ignore])
+AT_CHECK([LC_ALL=C libtoolize -i], [0], [stdout], [ignore])
# Some broken libtoolize fail to install a functional config.guess.
-AT_CHECK([./config.guess || exit 77], [], [ignore], [ignore])
+AT_CHECK([LC_ALL=C ./config.guess || exit 77], [], [ignore], [ignore])
# Make sure at-path contains something valid, and let the test suite
# display it when verbose. And fail, skipping would too easily hide
--
2.1.0