>From 4ee65dd5a46a1a7b80421bacbcc2a7e72ce9511a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 26 Dec 2019 10:09:11 +0100 Subject: [PATCH] tests: Work around AIX 7.2 sh printf bug differently. * tests/init.sh (setup_): Revert last change. * tests/backslash-s-vs-invalid-multibyte: Run printf in the C locale. * tests/encoding-error: Likewise. --- tests/backslash-s-vs-invalid-multibyte | 2 +- tests/encoding-error | 2 +- tests/init.sh | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/backslash-s-vs-invalid-multibyte b/tests/backslash-s-vs-invalid-multibyte index bfa4462..69c4471 100755 --- a/tests/backslash-s-vs-invalid-multibyte +++ b/tests/backslash-s-vs-invalid-multibyte @@ -11,7 +11,7 @@ require_en_utf8_locale_ -printf '\202\n' > in || framework_failure_ +LC_ALL=C printf '\202\n' > in || framework_failure_ LC_ALL=en_US.UTF-8 export LC_ALL diff --git a/tests/encoding-error b/tests/encoding-error index 508206d..88c37f5 100755 --- a/tests/encoding-error +++ b/tests/encoding-error @@ -13,7 +13,7 @@ require_en_utf8_locale_ printf 'Alfred Jones\n' > a || framework_failure_ printf 'John Smith\n' >j || framework_failure_ -printf 'Pedro P\351rez\n' >p || framework_failure_ +LC_ALL=C printf 'Pedro P\351rez\n' >p || framework_failure_ cat a p j >in || framework_failure_ LC_ALL=en_US.UTF-8 diff --git a/tests/init.sh b/tests/init.sh index a0ee8a9..8ca5c90 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -378,8 +378,6 @@ testdir_prefix_ () { printf gt; } # Set up the environment for the test to run in. setup_ () { - export LC_ALL=C - if test "$VERBOSE" = yes; then # Test whether set -x may cause the selected shell to corrupt an # application's stderr. Many do, including zsh-4.3.10 and the /bin/sh -- 2.7.4