Module Name: src Committed By: riastradh Date: Sat Aug 17 12:37:05 UTC 2024
Modified Files: src/lib/libc/locale: mbrtoc16.3 Log Message: mbrtoc16(3): Clarify how many bytes are consumed in special cases. Fix overlap in RETURN VALUES section. PR lib/52374: <uchar.h> missing To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libc/locale/mbrtoc16.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/mbrtoc16.3 diff -u src/lib/libc/locale/mbrtoc16.3:1.8 src/lib/libc/locale/mbrtoc16.3:1.9 --- src/lib/libc/locale/mbrtoc16.3:1.8 Sat Aug 17 01:52:51 2024 +++ src/lib/libc/locale/mbrtoc16.3 Sat Aug 17 12:37:05 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: mbrtoc16.3,v 1.8 2024/08/17 01:52:51 riastradh Exp $ +.\" $NetBSD: mbrtoc16.3,v 1.9 2024/08/17 12:37:05 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 @@ code unit at .Li * Ns Fa pc16 and returns .Li "(size_t)-3" . +.Sy \&No +bytes of input are consumed in this case. .It If .Nm @@ -194,7 +199,7 @@ decoded a null multibyte character. .It Ar i .Bq code unit where -.Li 0 +.Li 1 \*(Le .Ar i \*(Le