Collin Funk wrote: > I pushed the attached patch adding the #if defined __illumos__.
It apparently has the desired effect. So, let me do the same thing with the test-trim3.sh test, that fails like this: FAIL: test-trim3.sh =================== ../../gltests/test-trim.c:150: assertion 'strcmp (result, "\241\244foo") == 0' failed 2024-05-21 Bruno Haible <br...@clisp.org> trim tests: Avoid test failure on Solaris 11 OmniOS. * tests/test-trim.c (main): Skip the failing test on Illumos. diff --git a/tests/test-trim.c b/tests/test-trim.c index beda03009a..e765f23109 100644 --- a/tests/test-trim.c +++ b/tests/test-trim.c @@ -144,7 +144,7 @@ main (int argc, char *argv[]) free (result); } #endif - #if !(defined __FreeBSD__ || defined __DragonFly__) + #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __illumos__) { /* U+3000 IDEOGRAPHIC SPACE */ char *result = trim ("\241\241\241\244foo\241\241"); ASSERT (strcmp (result, "\241\244foo") == 0);