While experimenting using the module "posixcheck" included in
"groff" I got these warnings:
N.B. Some lines are folded.
CC lib/libgnu_a-chdir-long.o
../lib/chdir-long.c: In function 'chdir_long':
../lib/chdir-long.c:129:23: warning: call to 'strspn' declared
with attribute warning: strspn cannot work correctly on character
strings in multibyte locales - use mbsspn if you care about
internationalization [-Wattribute-warning]
129 | n_leading_slash = strspn (dir, "/");
| ^~~~~~~~~~~~~~~~~
In function 'find_non_slash',
inlined from 'chdir_long' at ../lib/chdir-long.c:152:15:
../lib/chdir-long.c:89:20: warning: call to 'strspn' declared
with attribute warning: strspn cannot work correctly on character
strings in multibyte locales - use mbsspn if you care about
internationalization [-Wattribute-warning]
89 | size_t n_slash = strspn (s, "/");
| ^~~~~~~~~~~~~~~
In function 'find_non_slash',
inlined from 'chdir_long' at ../lib/chdir-long.c:184:15:
../lib/chdir-long.c:89:20: warning: call to 'strspn' declared
with attribute warning: strspn cannot work correctly on character
strings in multibyte locales - use mbsspn if you care about
internationalization [-Wattribute-warning]
89 | size_t n_slash = strspn (s, "/");
| ^~~~~~~~~~~~~~~
-.-.
CC lib/libgnu_a-mbschr.o
../lib/mbschr.c: In function 'mbschr':
../lib/mbschr.c:68:12: warning: call to 'strchr' declared with
attribute warning: strchr cannot work correctly on character
strings in some multibyte locales - use mbschr if you care about
internationalization [-Wattribute-warning]
68 | return strchr (string, c);
| ^~~~~~~~~~~~~~~~~~
CC lib/libgnu_a-mbsspn.o
../lib/mbsspn.c: In function 'mbsspn':
../lib/mbsspn.c:135:12: warning: call to 'strspn' declared with
attribute warning: strspn cannot work correctly on character
strings in multibyte locales - use mbsspn if you care about
internationalization [-Wattribute-warning]
135 | return strspn (string, reject);
| ^~~~~~~~~~~~~~~~~~~~~~~
-.-
CC lib/libgnu_a-tempname.o
../lib/tempname.c: In function 'try_tempname_len':
../lib/tempname.c:230:10: warning: call to 'strspn' declared
with attribute warning: strspn cannot work correctly on character
strings in multibyte locales - use mbsspn if you care about
internationalization [-Wattribute-warning]
230 | || strspn (&tmpl[len - x_suffix_len - suffixlen],
"X") < x_suffix_len)
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.-.
It looks like "mbsspn" ("mbschr") needs to be selected in
these files (and others?) when the corresponding modules are
listed in "bootstrap.conf".