Module Name: src Committed By: riastradh Date: Sat Aug 17 12:37:29 UTC 2024
Modified Files: src/lib/libc/locale: mbrtoc8.3 Log Message: mbrtoc8(3): Clarify how many bytes are consumed in special cases. Fix overlap in RETURN VALUES section. PR standards/58601: uchar.h C23 compliance: char8_t, mbrtoc8, c8rtomb To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/lib/libc/locale/mbrtoc8.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/mbrtoc8.3 diff -u src/lib/libc/locale/mbrtoc8.3:1.5 src/lib/libc/locale/mbrtoc8.3:1.6 --- src/lib/libc/locale/mbrtoc8.3:1.5 Fri Aug 16 23:25:18 2024 +++ src/lib/libc/locale/mbrtoc8.3 Sat Aug 17 12:37:29 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: mbrtoc8.3,v 1.5 2024/08/16 23:25:18 riastradh Exp $ +.\" $NetBSD: mbrtoc8.3,v 1.6 2024/08/17 12:37:29 riastradh Exp $ .\" .\" Copyright (c) 2024 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -100,6 +100,9 @@ saves its state in .Fa ps after all the input so far and returns .Li "(size_t)-2". +.Sy All +.Fa n +bytes of input are consumed in this case. .It If .Nm @@ -109,6 +112,8 @@ unit at .Li * Ns Fa pc8 and returns .Li "(size_t)-3" . +.Sy \&No +input is consumed in this case. .It If .Nm @@ -193,7 +198,7 @@ decoded a null multibyte character. .It Ar i .Bq code unit where -.Li 0 +.Li 1 \*(Le .Ar i \*(Le