[LC++] Unicode writing problem

Radhika M G radhika.ganganna at oracle.com
Thu Jan 8 21:12:42 EST 2009


Hi,

 

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:
rad.csv). 

 

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. 

 

I've attached a test case with this mail. 

Files are: 

Linuxunicode.cpp

Nullcodecvt.h

 

Output file rad.csv is attached with this mail.  

 

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

 

Regards.

Radhika

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20090108/8c04a5cd/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linuxunicode.cpp
Url: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20090108/8c04a5cd/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nullcodecvt.h
Url: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20090108/8c04a5cd/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rad.csv
Type: application/vnd.ms-excel
Size: 1002 bytes
Desc: not available
Url : http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20090108/8c04a5cd/attachment.xlb 


More information about the tuxCPProgramming mailing list