* mbmemcasecmp2, mbmemcasecoll2 test failures on FreeBSD
@ 2020-12-07 21:28 Bruno Haible
2020-12-30 15:33 ` mbmemcasecmp2, mbmemcasecoll2 test failures on Solaris OpenIndiana Bruno Haible
0 siblings, 1 reply; 2+ messages in thread
From: Bruno Haible @ 2020-12-07 21:28 UTC (permalink / raw)
To: bug-gnulib
On FreeBSD 11.0 and 12.0, I see test failures
FAIL: test-mbmemcasecmp2.sh
===========================
../../gltests/test-mbmemcasecmp.h:359: assertion 'my_casecmp (input2, SIZEOF (input2), input3, SIZEOF (input3)) == 0' failed
Abort trap (core dumped)
FAIL test-mbmemcasecmp2.sh (exit status: 134)
FAIL: test-mbmemcasecoll2.sh
============================
../../gltests/test-mbmemcasecmp.h:359: assertion 'my_casecmp (input2, SIZEOF (input2), input3, SIZEOF (input3)) == 0' failed
Abort trap (core dumped)
FAIL test-mbmemcasecoll2.sh (exit status: 134)
This is caused by a wrong 'towlower' mapping table. This program
====================================================================
#include <locale.h>
#include <stdio.h>
#include <wchar.h>
#include <wctype.h>
int main ()
{
if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL)
{
fprintf (stderr, "setlocale did not find the locale.\n");
return 1;
}
printf ("towlower (0x038A) = 0x%04X\n", towlower (0x038A));
printf ("towupper (0x038A) = 0x%04X\n", towupper (0x038A));
printf ("towlower (0x03AF) = 0x%04X\n", towlower (0x03AF));
printf ("towupper (0x03AF) = 0x%04X\n", towupper (0x03AF));
printf ("towlower (0x03B0) = 0x%04X\n", towlower (0x03B0));
printf ("towupper (0x03B0) = 0x%04X\n", towupper (0x03B0));
}
====================================================================
is supposed to print
towlower (0x038A) = 0x03AF
towupper (0x038A) = 0x038A
towlower (0x03AF) = 0x03AF
towupper (0x03AF) = 0x038A
towlower (0x03B0) = 0x03B0
towupper (0x03B0) = 0x03B0
but actually prints
towlower (0x038A) = 0x03B0
towupper (0x038A) = 0x038A
towlower (0x03AF) = 0x03AF
towupper (0x03AF) = 0x038A
towlower (0x03B0) = 0x03B0
towupper (0x03B0) = 0x03B0
It is fixed in FreeBSD 12.2.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mbmemcasecmp2, mbmemcasecoll2 test failures on Solaris OpenIndiana
2020-12-07 21:28 mbmemcasecmp2, mbmemcasecoll2 test failures on FreeBSD Bruno Haible
@ 2020-12-30 15:33 ` Bruno Haible
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2020-12-30 15:33 UTC (permalink / raw)
To: bug-gnulib
I wrote:
> On FreeBSD 11.0 and 12.0, I see test failures
>
> FAIL: test-mbmemcasecmp2.sh
> ===========================
>
> ../../gltests/test-mbmemcasecmp.h:359: assertion 'my_casecmp (input2, SIZEOF (input2), input3, SIZEOF (input3)) == 0' failed
> Abort trap (core dumped)
> FAIL test-mbmemcasecmp2.sh (exit status: 134)
>
> FAIL: test-mbmemcasecoll2.sh
> ============================
>
> ../../gltests/test-mbmemcasecmp.h:359: assertion 'my_casecmp (input2, SIZEOF (input2), input3, SIZEOF (input3)) == 0' failed
> Abort trap (core dumped)
> FAIL test-mbmemcasecoll2.sh (exit status: 134)
The same test failures, with the same cause, exist also on Solaris 11
OpenIndiana.
Reported at <https://www.illumos.org/issues/13412> .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-30 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 21:28 mbmemcasecmp2, mbmemcasecoll2 test failures on FreeBSD Bruno Haible
2020-12-30 15:33 ` mbmemcasecmp2, mbmemcasecoll2 test failures on Solaris OpenIndiana Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).