File tree 2 files changed +9
-1
lines changed 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ __stdcall.
78
78
20. A negative repeat value in a pcre2test subject line was not being
79
79
diagnosed, leading to infinite looping.
80
80
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
+
81
84
82
85
Version 10.40 15-April-2022
83
86
---------------------------
Original file line number Diff line number Diff line change @@ -845,7 +845,12 @@ if [ $? -ne 0 ]; then
845
845
echo " pcre2grep: Failed to set locale badlocale (obtained from LC_CTYPE)" >> testtrygrep
846
846
echo " RC=2" >> testtrygrep
847
847
else
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
849
854
echo " RC=$? " >> testtrygrep
850
855
fi
851
856
You can’t perform that action at this time.
0 commit comments