grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v3.3-42-gbf5a308


From: Paul Eggert
Subject: grep branch, master, updated. v3.3-42-gbf5a308
Date: Wed, 25 Dec 2019 17:40:59 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  bf5a308349fbcf0a376ca3e6e83fe7c6a2cc9eb1 (commit)
      from  6b4ee2c0b163de6fdac2dca6ddca6d3065d45bcd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=bf5a308349fbcf0a376ca3e6e83fe7c6a2cc9eb1


commit bf5a308349fbcf0a376ca3e6e83fe7c6a2cc9eb1
Author: Paul Eggert <address@hidden>
Date:   Wed Dec 25 14:40:11 2019 -0800

    tests: work around AIX 7.2 sh printf bug
    
    AIX 7.2 /bin/sh’s printf command mishandles octal escapes
    in multibyte locales: it treats them as characters, not bytes.
    * tests/backslash-s-vs-invalid-multitype, tests/encoding-error:
    Use the C locale when employing the printf command with an octal
    escape that AIX 7.2 sh might mishandle.
    * tests/init.sh (setup_): Use the C locale for tests.
    This has the side benefit of making them more reproducible.

diff --git a/tests/backslash-s-vs-invalid-multitype 
b/tests/backslash-s-vs-invalid-multitype
index 82c6e63..bfa4462 100755
--- a/tests/backslash-s-vs-invalid-multitype
+++ b/tests/backslash-s-vs-invalid-multitype
@@ -11,11 +11,11 @@
 
 require_en_utf8_locale_
 
+printf '\202\n' > in || framework_failure_
+
 LC_ALL=en_US.UTF-8
 export LC_ALL
 
-printf '\202\n' > in || framework_failure_
-
 fail=0
 grep '^\S$' in > out-S && fail=1
 compare /dev/null out-S || fail=1
diff --git a/tests/encoding-error b/tests/encoding-error
index 1987f09..508206d 100755
--- a/tests/encoding-error
+++ b/tests/encoding-error
@@ -11,14 +11,14 @@
 
 require_en_utf8_locale_
 
-LC_ALL=en_US.UTF-8
-export LC_ALL
-
 printf 'Alfred Jones\n' > a || framework_failure_
 printf 'John Smith\n' >j || framework_failure_
 printf 'Pedro P\351rez\n' >p || framework_failure_
 cat a p j >in || framework_failure_
 
+LC_ALL=en_US.UTF-8
+export LC_ALL
+
 fail=0
 
 grep '^A' in >out || fail=1
diff --git a/tests/init.sh b/tests/init.sh
index 8ca5c90..a0ee8a9 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -378,6 +378,8 @@ 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

-----------------------------------------------------------------------

Summary of changes:
 tests/backslash-s-vs-invalid-multitype | 4 ++--
 tests/encoding-error                   | 6 +++---
 tests/init.sh                          | 2 ++
 3 files changed, 7 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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