Problem writing unicode data to wofstream

Radhika M G
Fri Jan 9 03:23:00 GMT 2009


I’m trying to create a csv file in Unicode format. I’m using wofstream to
create the file. 
I’m writing a string 100 times to wofstream. I find that the values written
to wofstream stop after writing abut 25 lines (attached the output file:

What could be the issue? Bad or  fail bit of  wofstream are not set. So not
able to figure out where things are going wrong. 

The gcc version I’m using is: gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)

I’ve filed a bug already
Testcase could be found in the above link. 


More information about the Gcc-help mailing list