]> Savannah Git Hosting - gnulib.git/commitdiff
doc: isdigit and isxdigit are locale-independent
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Dec 2024 20:17:18 +0000 (12:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Dec 2024 20:17:58 +0000 (12:17 -0800)
* 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

ChangeLog
doc/posix-functions/isdigit.texi
doc/posix-functions/isxdigit.texi

index 3a8e15beab750be38c0f3ad0dc0aa6779101eecb..8b1b923d176eec892043a18f332c6a3e2c069275 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2024-12-11  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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.
index 7550d523e84e60ab2f259e63651363edec7bf6ae..5077c662814a175834dc7bf0fd7394f79a31ba62 100644 (file)
@@ -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:
index 321af6e21fa94056a4c8f382a80276fc4fe9056a..a8c4e98c4f8204c5c2a25dbcc43cb0aebb713ba1 100644 (file)
@@ -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: