This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] collate_members_wchar_t.cc
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 09 Mar 2002 22:53:23 +0100
- Subject: Re: [RFC] collate_members_wchar_t.cc
- References: <1015709525.23800.633.camel@myware.mynet>
Ulrich Drepper wrote:
> What is the return value of the setlocale call?
> I.e., which locale was actually used?
I modified your testcase as follows (please excuse my naivete, I don't use daily
C locales):
#include <locale.h>
#include <wchar.h>
int
main ()
{
int r;
char* ret;
ret = setlocale (LC_ALL, "de_DE");
r = wcscoll (L"Äuglein", L"Augment");
printf ("r = %d\n", r);
return 0;
}
and gdb prints:
(gdb) print ret
$1 = 0x804b268 "de_DE"
Paolo.