On Thu, 2016 Aug 18 01:53-0700, Paul Eggert wrote: > > Hmm, sorry, I don't seem to have them. Could you please resend them, > in 'git format-patch' format? Thanks.
They are attached. I needed to make some minor edits on the format-patch output, hopefully harmless. The ChangeLog-style entries are at the top, though you'll need to add the "section" lines. The first change, to test-c-strncasecmp.c, disables two string-compares that fail in EBCDIC. (\304 == 'D' in the 1047 encoding.) The second change, to test-sigpipe.sh, fixes what looked like a typo. (A goes with A, B goes with B, so what should go with C...) --Daniel -- Daniel Richard G. || sk...@iskunk.org My ASCII-art .sig got a bad case of Times New Roman.
2016-08-19 Daniel Richard G. <sk...@iskunk.org> * tests/test-c-strncasecmp.c: Allow two c_strncasecmp() calls which assume ASCII encoding semantics to run only in ASCII mode, as they fail in EBCDIC * tests/test-sigpipe.sh: Fixed typo --- tests/test-c-strncasecmp.c | 3 +++ tests/test-sigpipe.sh | 2 +- diff --git a/tests/test-c-strncasecmp.c b/tests/test-c-strncasecmp.c index 1ca42d8..349f6b3 100644 --- a/tests/test-c-strncasecmp.c +++ b/tests/test-c-strncasecmp.c @@ -19,6 +19,7 @@ #include <config.h> #include "c-strcase.h" +#include "c-ctype.h" #include <locale.h> #include <string.h> @@ -71,9 +72,11 @@ main (int argc, char *argv[]) ASSERT (c_strncasecmp ("\303\266zg\303\274r", "\303\226ZG\303\234R", 99) > 0); /* özgür */ ASSERT (c_strncasecmp ("\303\226ZG\303\234R", "\303\266zg\303\274r", 99) < 0); /* özgür */ +#if C_CTYPE_ASCII /* This test shows how strings of different size cannot compare equal. */ ASSERT (c_strncasecmp ("turkish", "TURK\304\260SH", 7) < 0); ASSERT (c_strncasecmp ("TURK\304\260SH", "turkish", 7) > 0); +#endif return 0; } diff --git a/tests/test-sigpipe.sh b/tests/test-sigpipe.sh index bc2baf2..6cf3242 100755 --- a/tests/test-sigpipe.sh +++ b/tests/test-sigpipe.sh @@ -21,7 +21,7 @@ fi # Test signal's behaviour when a handler is installed. tmpfiles="$tmpfiles t-sigpipeC.tmp" -./test-sigpipe${EXEEXT} B 2> t-sigpipeC.tmp | head -1 > /dev/null +./test-sigpipe${EXEEXT} C 2> t-sigpipeC.tmp | head -1 > /dev/null if test -s t-sigpipeC.tmp; then LC_ALL=C tr -d '\r' < t-sigpipeC.tmp rm -fr $tmpfiles; exit 1 -- 2.9.0