File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ __stdcall.
787820. A negative repeat value in a pcre2test subject line was not being
7979diagnosed, leading to infinite looping.
8080
81+ 21. Updated RunGrepTest to discard the warning that Bash now gives when setting
82+ LC_CTYPE to an bad value (because older versions didn't).
83+
8184
8285Version 10.40 15-April-2022
8386---------------------------
Original file line number Diff line number Diff line change @@ -845,7 +845,12 @@ if [ $? -ne 0 ]; then
845845 echo "pcre2grep: Failed to set locale badlocale (obtained from LC_CTYPE)" >>testtrygrep
846846 echo "RC=2" >>testtrygrep
847847else
848- (cd $srcdir; unset LC_ALL; LC_CTYPE=badlocale $valgrind $vjs $pcre2grep abc /dev/null) >>testtrygrep 2>&1
848+
849+ # Bash has started giving a warning when LC_CTYPE is set to a bad value. In
850+ # order to remain compatible with older versions, the following code is a bit
851+ # contorted.
852+
853+ (cd $srcdir; unset LC_ALL; export LC_CTYPE=badlocale 2>/dev/null; $valgrind $vjs $pcre2grep abc /dev/null) >>testtrygrep 2>&1
849854 echo "RC=$?" >>testtrygrep
850855fi
851856
You can’t perform that action at this time.
0 commit comments