mlibc icon indicating copy to clipboard operation
mlibc copied to clipboard

UTF8 ansi test is broken

Open Dennisbonke opened this issue 2 years ago • 1 comments

While attempting with @64 to run our testsuite on the host libc to verify behavior, we found out that the utf8 test in the ansi category is broken. On a glibc host, all inputs of the test make mbrtowc return -1 and set errno to EILSEQ, while mlibc decodes them correctly. That seems to be a bug. I think we need to improve error handling in the test, in our mbrtowc and fix the test itself to actually include valid mbrtowc conversions.

CC: @avdgrinten as you wrote the internal decoding functions, mbrtowc and the utf8 test.

Dennisbonke avatar Jun 06 '22 02:06 Dennisbonke

Related: #13

64 avatar Jun 08 '22 05:06 64