wcsxfrm broken?

Jakub Jelinek jakub@redhat.com
Mon Aug 6 08:01:00 GMT 2001


On Mon, Aug 06, 2001 at 03:59:09PM +0200, Andreas Jaeger wrote:
> 
> The appended program gives a segmentation fault on 64-bit plattforms
> I(I tested ia64 and alpha):

I saw segfault in the same place with:
#include <locale.h>
#include <wchar.h>

int main ()
{
    const wchar_t s1[] = {
        0xcc, 0x2a, 0x2f, 0xb, 0x6a, 0x64, 0x71, 0x9f,
        0x19, 0xcb, 0xce, 0xf9, 0xda, 0x59, 0xef, 0x0
    };

    const wchar_t s2[] = {
        0xcc, 0x2a, 0x2f, 0xb, 0x6a, 0x64, 0x71, 0x8d,
        0x6c, 0x63, 0x5f, 0x9a, 0x38, 0x55, 0x3c, 0x0
    };

    if (!setlocale (LC_COLLATE, "hr_HR.utf8"))
        return 1;

    wcscoll (s1, s2);
}

on Saturday, will debug this once I finish one GCC patch.

	Jakub



More information about the Libc-hacker mailing list