![]() |
|
Message-ID: <cdfadcd8-eb19-8f86-d833-1c0b26ddf314@evolvis.org> Date: Fri, 4 Apr 2025 23:39:38 +0200 (CEST) From: Thorsten Glaser <tg@...lvis.org> To: musl@...ts.openwall.com Subject: Re: wcrtomb in UTF-8 locale should check the multibyte state On Sat, 5 Apr 2025, Kang-Che Sung wrote: >Note: It is _allowed_ in the C standard to reuse an mbstate_t object >across different multibyte conversion functions. It is _not an 7.31.6 begs to differ: | If an mbstate_t object has been altered by any of the functions | described in this subclause, and is then used with a different | multibyte character sequence, or in the other conversion direction, or | with a different LC_CTYPE category setting than on earlier function | calls, the behavior is undefined.414) bye, //mirabilos -- 15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.