* modules/regex-tests (Depends-on): Add wctype-h.
* tests/test-regex.c: Include wctype.h.
(main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
as the Turkish regex test assumes this.
2020-09-25 Paul Eggert <eggert@cs.ucla.edu>
+ regex-tests: fix possible Turkish false-alarm
+ * modules/regex-tests (Depends-on): Add wctype-h.
+ * tests/test-regex.c: Include wctype.h.
+ (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
+ as the Turkish regex test assumes this.
+
regex-tests: fix test and add debug output
Perhaps this will fix the recent grep test failure reported at:
https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
Depends-on:
gettext-h
localcharset
+wctype-h
configure.ac:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <wctype.h>
#if HAVE_DECL_ALARM
# include <unistd.h>
# include <signal.h>
return 1;
}
- if (setlocale (LC_ALL, "tr_TR.UTF-8") && really_utf8 ())
+ if (setlocale (LC_ALL, "tr_TR.UTF-8") && really_utf8 ()
+ && towupper (L'i') == 0x0130 /* U+0130; see below. */)
{
re_set_syntax (RE_SYNTAX_GREP | RE_ICASE);
memset (®ex, 0, sizeof regex);