This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: iostream changes locale to format a number
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: stephenw at cryptocard dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 03 May 2002 16:00:31 +0200
- Subject: Re: iostream changes locale to format a number
- References: <3CD27E4D.8010905@unitus.it> <20020503131051306.AAA1432@ns2.goodmedia.com@there> <3CD28F85.4090601@unitus.it> <20020503135422454.AAA1328@ns2.goodmedia.com@there>
Stephen M.Webb wrote:
>On May 3, 2002 09:24 am, Paolo Carlini wrote:
>
>
>>/What/ exactly do you believe it's not correct? glibc2.2.5 docs?
>>Takeshi analysis? Do you believe that Takeshi testcase must result in
>>the reported behaviour, with a "C" locale at the end of program?
>>
>>
>Takeshi's code shows a bug in GCC 3.1, in that writing to cout
>unexpectedly changes the value of the global POSIX locale. His code is
>correct and does not need to be changed.
>
Agreed.
>The good news is that this is not a problem in the CVS code. The fix
>for this went in some time after whomever made the snapshot RPM that
>Takeshi used.
>
Which one? :-O
Stephen I have tested Takeshi's testcase with today's 3.1 and the
problem it's there! Of course it's there because __convert_from_v it's
not ok!
Paolo.