Module Name: src
Committed By: riastradh
Date: Fri Aug 16 23:34:25 UTC 2024
Modified Files:
src/lib/libc/locale: c8rtomb.3
Log Message:
c8rtomb(3): Fix possible error descriptions.
The argument c8 can't be a surrogate code point itself (they're in
the range [0xd800,0xdfff], beyond 8-bit values), but the bits of a
surrogate code point could be forced into the UTF-8 format, which is
also invalid.
PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/locale/c8rtomb.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/locale/c8rtomb.3
diff -u src/lib/libc/locale/c8rtomb.3:1.3 src/lib/libc/locale/c8rtomb.3:1.4
--- src/lib/libc/locale/c8rtomb.3:1.3 Fri Aug 16 19:39:09 2024
+++ src/lib/libc/locale/c8rtomb.3 Fri Aug 16 23:34:25 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: c8rtomb.3,v 1.3 2024/08/16 19:39:09 riastradh Exp $
+.\" $NetBSD: c8rtomb.3,v 1.4 2024/08/16 23:34:25 riastradh Exp $
.\"
.\" Copyright (c) 2024 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -136,12 +136,12 @@ printf("%s\en", buf);
.Sh ERRORS
.Bl -tag -width Bq
.It Bq Er EILSEQ
-A surrogate code point was passed as
+The
.Fa c8
-when it is inappropriate.
+input sequence does not encode a Unicode scalar value in UTF-8.
.It Bq Er EILSEQ
-The Unicode scalar value requested cannot be encoded as a multibyte
-sequence in the current locale.
+The Unicode scalar value cannot be encoded as a multibyte sequence in
+the current locale.
.It Bq Er EIO
An error occurred in loading the locale's character conversions.
.El