Quoth remph <lhr_at_disroot.org>:
> Nice toolchain! Thanks for the software
>
> libc wchar conversion functions (and dependents, like printf %lc and %ls)
> had previously produced bogus output. This fixes that, plus a couple patches
> necessary to build on glibc/Linux where I'm testing on
I have pushed the changes with many of the modifications commented in
the thread, and later I have added a full rework of mbrtowc, because
it failed with non complete sequences. Reading the specs I realized
(and I checked it with the libc from musl, freebsd and Dragonfly bsd)
that mbrtowc is expected to be called many times until you get a full
sequence. For that reason, you have to accumulate the state in the
mbstate_t variable and a new, totally different algorithm was required
for it.
As the complexity of testing mbrtowc() became big, I decided to split
the tests per function, and I pushed the tests for mbsinit and mbrtowc
(including mbtowc ofc), and I hope I will push the tests for wcrtomb
in the coming days.
Please, take a look to the changes and let me know if I mistook in
something.
Regards,
--
To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.org
Received on Tue 11 Mar 2025 - 14:39:35 CET