an mbrtoc32 bug
Bruno Haible
bruno@clisp.org
Thu May 23 20:16:35 GMT 2024
In Cygwin 3.5.3, the attached program has an assertion failure in line 24:
bytes is not (size_t)-2.
How to reproduce:
$ gcc -Wall foo.c
$ ./a
I think this is a bug, because
- ISO C 23 § 7.30.1.5 talks about "completing" a character, not
"representing" an (entire) character.
- The test passes on glibc, musl libc, FreeBSD 14.0, Solaris 11.4.
Bruno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.c
Type: text/x-csrc
Size: 766 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin/attachments/20240523/35c363d8/attachment.bin>
More information about the Cygwin
mailing list