[Bug 272293] The mbrtoc32 and mbrtoc16 functions don't recognize the same multibyte sequences as mbrtowc
Date: Sun, 02 Jul 2023 14:18:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272293 John F. Carr <jfc@mit.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfc@mit.edu Attachment #243134|text/x-csrc |text/plain mime type| | --- Comment #3 from John F. Carr <jfc@mit.edu> --- Created attachment 243134 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243134&action=edit Test program using iconv directly I wrote a test program that reproduces this behavior by calling iconv directly. It gets an error with 13.2 libc iconv but produces plausible output with the ports version and with the iconv in Mac OS 13.2.1. The input encoding is unfamiliar to me. I observe that the output value doesn't fit in 16 bits and I have seen bugs before in code that was only tested with the common characters that fit in 16 bits. -- You are receiving this mail because: You are the assignee for the bug.