This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] collate_members_wchar_t.cc


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.




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