Re: mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-27 Thread Bruno Haible
I did: > 2024-05-23 Bruno Haible > > mbrtoc32: Strengthen tests. > * tests/test-mbrtoc32.c (main): Add tests for one-by-one input in the > UTF-8 and GB18030 encodings. This new test fails on NetBSD 10.0, reported by the CI. In this case, mbrtoc32 returns (size_t)-2 because mb

Re: mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-24 Thread Bruno Haible
I did: > 2024-05-23 Bruno Haible > > mbrtoc32: Strengthen tests. > * tests/test-mbrtoc32.c (main): Add tests for one-by-one input in the > UTF-8 and GB18030 encodings. Oops, the new test fails on Solaris 11.4. Fixed as follows: 2024-05-24 Bruno Haible mbrtoc32

Re: mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-23 Thread Collin Funk
On 5/23/24 3:01 PM, Bruno Haible wrote: > The mbrtoc32 function, newly added in Cygwin 3.5.0, is buggy. > > These two patches provide a workaround (at the cost of deactivating > the GB18030 locale support in Cygwin), and add a two test cases. Looks good. Thanks for all the Cygwin fixes. Collin

mbrtoc32: Work around bug in Cygwin 3.5.3

2024-05-23 Thread Bruno Haible
(main): Add tests for one-by-one input in the UTF-8 and GB18030 encodings. mbrtoc32: Work around bug in Cygwin 3.5.3. * m4/mbrtoc32.m4 (gl_MBRTOC32_UTF8_LOCALE): New macro. (gl_FUNC_MBRTOC32): Invoke it. If mbrtoc32 has this bug, define