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:13:23 +0100
- Subject: Re: [RFC] collate_members_wchar_t.cc
- References: <1015707973.23800.631.camel@myware.mynet>
Ulrich Drepper wrote:
> On Sat, 2002-03-09 at 12:47, Paolo Carlini wrote:
>
> > Well, I'm running on i686-pc-linux-gnu, linux2.4.16, and a stock
> glibc2.2.5
> > built with gcc2.95.3+patches.
>
> The current sources have no known problems. 2.2.5 should be fine, too.
> What do you get for the C equivalent I mentioned (see below)?
In the meanwhile I prepared a selfcontained testcase (see below). I get 20,
exactly as happens when runnning v3 testsuite.
Thanks, Paolo.
////////////////////////////////
#define _GNU_SOURCE 1
#include <string.h>
#include <wchar.h>
#include <locale.h>
#define __c_locale __locale_t
int main()
{
int wcmp;
const char* __s = "de_DE";
const wchar_t* __one = L"Äuglein";
const wchar_t* __two = L"Augmen";
__c_locale loc;
loc = __newlocale(1 << LC_ALL, __s, 0);
wcmp = __wcscoll_l(__one, __two, loc);
/* wcmp = 20 */
return 0;
}