Re: standards/60369: mbrtowc, mbrlen have wrong return value for some invalid byte sequences

"Taylor R Campbell via gnats" <[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], [email protected]
Cc: [email protected], [email protected]
Subject: Re: standards/60369: mbrtowc, mbrlen have wrong return value for some invalid byte sequences
Date: Fri, 26 Jun 2026 20:32:56 +0000

 Need automatic tests for this too!
 
 Should really just exhaustively check that mbrtowc does the right
 thing for all possible 4-byte sequences, maybe randomly subsampled for
 regular test suite runs.
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.