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: iostream changes locale to format a number


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.


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