This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [RFH] Trouble with mbsrtowcs and "\244" (Euro symbol)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: "Martin v. Loewis" <martin at v dot loewis dot de>, libc-alpha <libc-alpha at sources dot redhat dot com>, Ulrich Drepper <drepper at redhat dot com>, bkoz <bkoz at redhat dot com>
- Date: Mon, 13 May 2002 10:53:57 +0200
- Subject: Re: [RFH] Trouble with mbsrtowcs and "\244" (Euro symbol)
- References: <3CDEE3E6.9030304@unitus.it> <m3helck49w.fsf@mira.informatik.hu-berlin.de> <3CDF6BBF.4070404@unitus.it>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, May 13, 2002 at 09:31:11AM +0200, Paolo Carlini wrote:
> wstring result4 = oss.str();
> assert( result4 == L"7.200.000.000,00 \244");
> }
>
> I wrote the testcase dumbly copying it from the corresponding char case,
> that is simply prepending L to the expected result4. But now I see that
> this is incorrect since, according to Unicode Euro is 8364. Therefore, I
> suppose, in preparing this kind of testcase, the last char should be
> compared separately from the former.
>
> Thoughts?
Err, why you cannot just:
assert( result4 == L"7.200.000.000,00 \x20ac");
(the test works just fine then, provided the setlocale call is uncommented
(otherwise U20AC might not be in LC_CTYPE and as such not added at all)).
Jakub