I did: > 2024-05-23 Bruno Haible <br...@clisp.org> > > 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 <br...@clisp.org> mbrtoc32 tests: Avoid failure on Solaris 11.4 (regression yesterday). * tests/test-mbrtoc32.c (main): Conditionalize an assertion with GL_CHAR32_T_IS_UNICODE. diff --git a/tests/test-mbrtoc32.c b/tests/test-mbrtoc32.c index 68c601e2e5..b1c50c963c 100644 --- a/tests/test-mbrtoc32.c +++ b/tests/test-mbrtoc32.c @@ -315,7 +315,7 @@ main (int argc, char *argv[]) wc = (char32_t) 0xBADFACE; ret = mbrtoc32 (&wc, "\203", 1, &state); ASSERT (ret == 1); - ASSERT (wc == 0x0001F403); + ASSERT (wc == 0x1F403); /* expect Unicode encoding */ ASSERT (mbsinit (&state)); } return test_exit_status; @@ -485,7 +485,9 @@ main (int argc, char *argv[]) wc = (char32_t) 0xBADFACE; ret = mbrtoc32 (&wc, "\067", 1, &state); ASSERT (ret == 1); - ASSERT (wc == 0x0001F403); + #if GL_CHAR32_T_IS_UNICODE + ASSERT (wc == 0x1F403); /* expect Unicode encoding */ + #endif ASSERT (mbsinit (&state)); } return test_exit_status;