This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: wcsxfrm broken?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]