So isdigit(3) says in the first paragraph that

'The complete list of decimal digits is 0 and 1-9, in any locale.'

Later on it says:

'On systems supporting non-ASCII single-byte character encodings,
different c arguments may correspond to the digits, and the results of
isdigit() may depend on the LC_CTYPE locale(1).'

Argubly worring about non ASCII single byte character encodings
doesn't make sense for an OpenBSD man page, but setting that aside for
a minute it's the second part that is of concern.. "It may depend on
the LC_CTYPE locale()" - Ok, well does it or doesn't it? 

Various spec docs seem all over the place on this, so I am also
paging Dr. Posix in this email... Hi Philip! :)  Is isdigit()
safe from being screwed up by locale or not?

Should it be as below? 

Thoughts?

Index: isdigit.3
===================================================================
RCS file: /cvs/src/lib/libc/gen/isdigit.3,v
retrieving revision 1.13
diff -u -p -u -p -r1.13 isdigit.3
--- isdigit.3   11 Sep 2022 06:38:10 -0000      1.13
+++ isdigit.3   20 Jan 2023 16:23:08 -0000
@@ -59,11 +59,7 @@ non-zero if the character tests true.
 On systems supporting non-ASCII single-byte character encodings,
 different
 .Fa c
-arguments may correspond to the digits, and the results of
-.Fn isdigit
-may depend on the
-.Ev LC_CTYPE
-.Xr locale 1 .
+arguments may correspond to the digits.
 .Sh SEE ALSO
 .Xr isalnum 3 ,
 .Xr isalpha 3 ,

Reply via email to