* NEWS: Document this.
* lib/localeinfo.c (case_folded_counterparts):
First arg is now wint_t, not wchar_t. This generalizes the
function to also work on WEOF, where it returns 0.
2017-01-15 Paul Eggert <eggert@cs.ucla.edu>
+ localeinfo: case_folded_counterparts and WEOF
+ * NEWS: Document this.
+ * lib/localeinfo.c (case_folded_counterparts):
+ First arg is now wint_t, not wchar_t. This generalizes the
+ function to also work on WEOF, where it returns 0.
+
dfa: port to gcc -fsanitize=undefined
* lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
as this runs afoul of gcc -fsanitize=undefined.
Date Modules Changes
+2017-01-15 localeinfo Change case_folded_counterparts's first arg's type
+ from wchar_t to wint_t, so it now accepts WEOF.
+
2016-12-17 getlogin The link requirements of these modules are changed
getlogin_r from empty to $(LIB_GETLOGIN).
/* Find the characters equal to C after case-folding, other than C
itself, and store them into FOLDED. Return the number of characters
- stored. */
+ stored; this is zero if C is WEOF. */
int
-case_folded_counterparts (wchar_t c, wchar_t folded[CASE_FOLDED_BUFSIZE])
+case_folded_counterparts (wint_t c, wchar_t folded[CASE_FOLDED_BUFSIZE])
{
int i;
int n = 0;
itself. This is a generous upper bound. */
enum { CASE_FOLDED_BUFSIZE = 32 };
-extern int case_folded_counterparts (wchar_t, wchar_t[CASE_FOLDED_BUFSIZE]);
+extern int case_folded_counterparts (wint_t, wchar_t[CASE_FOLDED_BUFSIZE]);