From: Paul Eggert Date: Wed, 11 Dec 2024 20:17:18 +0000 (-0800) Subject: doc: isdigit and isxdigit are locale-independent X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9780a7b22b53b3785a1e3bca848a8d90bd2e977e;p=gnulib.git doc: isdigit and isxdigit are locale-independent * doc/posix-functions/isdigit.texi: * doc/posix-functions/isxdigit.texi: Document that mingw and MSVC do not conform to the C standard, which says that isdigit and isxdigit are independent of locale. Issue pointed out by Florian Weimer in: https://sourceware.org/pipermail/libc-alpha/2024-December/162362.html --- diff --git a/ChangeLog b/ChangeLog index 3a8e15beab..8b1b923d17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2024-12-11 Paul Eggert + doc: isdigit and isxdigit are locale-independent + * doc/posix-functions/isdigit.texi: + * doc/posix-functions/isxdigit.texi: + Document that mingw and MSVC do not conform to the C standard, + which says that isdigit and isxdigit are independent of locale. + Issue pointed out by Florian Weimer in: + https://sourceware.org/pipermail/libc-alpha/2024-December/162362.html + doc: document non-translation * doc/gnulib-tool.texi (Localization): Say what to do if you don’t want translations. diff --git a/doc/posix-functions/isdigit.texi b/doc/posix-functions/isdigit.texi index 7550d523e8..5077c66281 100644 --- a/doc/posix-functions/isdigit.texi +++ b/doc/posix-functions/isdigit.texi @@ -17,9 +17,13 @@ macOS 10.8. Portability problems not fixed by Gnulib: @itemize +@item +This function's behavior depends on locale, can return nonzero on +arguments other than the usual decimal digits: +mingw, MSVC. @end itemize -Note: This function's behaviour depends on the locale, but does not support +Note: This function does not support the multibyte characters that occur in strings in locales with @code{MB_CUR_MAX > 1} (this includes all the common UTF-8 locales). There are five alternative APIs: diff --git a/doc/posix-functions/isxdigit.texi b/doc/posix-functions/isxdigit.texi index 321af6e21f..a8c4e98c4f 100644 --- a/doc/posix-functions/isxdigit.texi +++ b/doc/posix-functions/isxdigit.texi @@ -17,9 +17,13 @@ macOS 10.8. Portability problems not fixed by Gnulib: @itemize +@item +This function's behavior depends on locale, can return nonzero on +arguments other than the usual hexadecimal digits: +mingw, MSVC. @end itemize -Note: This function's behaviour depends on the locale, but does not support +Note: This function does not support the multibyte characters that occur in strings in locales with @code{MB_CUR_MAX > 1} (this includes all the common UTF-8 locales). There are five alternative APIs: