iostream changes locale to format a number
Paolo Carlini
pcarlini@unitus.it
Fri May 3 06:58:00 GMT 2002
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.
More information about the Libstdc++
mailing list