[RFC] collate_members_wchar_t.cc

Benjamin Kosnik bkoz@redhat.com
Sat Mar 9 15:19:00 GMT 2002


Thanks for this Paolo. I think that there are probably problems with the 
current testcases, so beware.

> Compiled for the right platform it won't require any jumps.  Modern gcc
> versions will optimize your code pretty well but it's not as good as
> this code.

Thanks.

> On what system do you run this?  I get -1 for the C equivalent
> 
>   wcscoll (L"=C4uglein", L"Augment")

(gdb) p wcmp
$2 = 52

And then in Paolo's test case

wcmp = __wcscoll_l(__one, __two, loc);
(gdb) p wcmp
$1 = 20

> It might well be the case that you're stumbling accross a problem with
> the libc code.  There were until recently some changes in the locale
> file generation.  I'm running the current RH libc (as you'd get it from
> up2date) and I guess the test case would work.

Hmm. Me too, but I don't have the same results as you either.

%rpm -q glibc
glibc-2.2.4-19.3

> Anyway, this test assumes correct collation information according to
> German collation rules.  Not every system which has locales and has a
> de_DE locale will have this correctly implemented.

Right. They're XFAILED. If they pass, it's a bonus. On linux, they should 
pass.

-benjamin



More information about the Libstdc++ mailing list