[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "mbsspn" and "mbschr" missing in some files in /lib/
From: |
Bruno Haible |
Subject: |
Re: "mbsspn" and "mbschr" missing in some files in /lib/ |
Date: |
Thu, 01 Feb 2024 23:55:19 +0100 |
Bjarni Ingi Gislason wrote:
> 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, "/");
> | ^~~~~~~~~~~~~~~~~
> It looks like "mbsspn" ("mbschr") needs to be selected in
> these files (and others?) when the corresponding modules are
> listed in "bootstrap.conf".
If you want to use the function 'mbsspn', then yes you need to import
the corresponding module ('mbsspn') via gnulib-tool.
https://www.gnu.org/software/gnulib/manual/html_node/Finding-POSIX-substitutes.html
step 4.
Bruno