PR/60369 CVS commit: src/tests/lib/libc/locale

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR standards/60369; it has been noted by GNATS.

From: "Taylor R Campbell" <[email protected]>
To: [email protected]
Cc: 
Subject: PR/60369 CVS commit: src/tests/lib/libc/locale
Date: Sat, 27 Jun 2026 20:43:43 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sat Jun 27 20:43:43 UTC 2026
 
 Modified Files:
 	src/tests/lib/libc/locale: t_mbrtowc.c t_mbstowcs.c
 
 Log Message:
 t_mbstowcs: Mark UTF-8 test cases xfail.
 
 mbrtowc fails to reject invalid (legacy 5/6-byte) UTF-8.
 
 Need to split this test up into:
 
 1. correctly decoding the valid inputs
 2. correctly rejecting the invalid inputs
 
 Also don't stop at the first failing test in t_mbrtowc; keep going to
 test everything, for better diagnostics at the end in the test
 report.
 
 As with t_mbrtowc, this should be split into multiple parts, TBD.
 
 PR lib/60369: mbrtowc, mbrlen have wrong return value for some
 invalid byte sequences: Invalid sequence
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/locale/t_mbrtowc.c \
     src/tests/lib/libc/locale/t_mbstowcs.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.