From: millert Date: Fri, 20 Jan 2023 17:21:12 +0000 (+0000) Subject: The locale is ignored on OpenBSD, match the wording used in isalpha.3. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ee7940db9842a6484ec1ee88299d80f48778da2d;p=openbsd The locale is ignored on OpenBSD, match the wording used in isalpha.3. OK schwarze@ --- diff --git a/lib/libc/gen/isdigit.3 b/lib/libc/gen/isdigit.3 index 4ad0c05e433..3ca4afe13fe 100644 --- a/lib/libc/gen/isdigit.3 +++ b/lib/libc/gen/isdigit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: isdigit.3,v 1.13 2022/09/11 06:38:10 jmc Exp $ +.\" $OpenBSD: isdigit.3,v 1.14 2023/01/20 17:21:12 millert Exp $ .\" .\" Copyright (c) 1991 The Regents of the University of California. .\" Copyright (c) 2017 Ingo Schwarze @@ -32,7 +32,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: September 11 2022 $ +.Dd $Mdocdate: January 20 2023 $ .Dt ISDIGIT 3 .Os .Sh NAME @@ -51,7 +51,12 @@ The and .Fn isdigit_l functions test for any decimal-digit character. -The complete list of decimal digits is 0 and 1\(en9, in any locale. +In the C locale, the complete list of decimal digits is 0 and 1\(en9. +.Ox +always uses the C locale for these functions, +ignoring the global locale, the thread-specific locale, and the +.Fa locale +argument. .Sh RETURN VALUES These functions return zero if the character tests false or non-zero if the character tests true.