Re: test unicode outfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30 June 2011 19:00, eric wrote:
> Dear Axel Freyn(and any g++ programers/testers):
>
>  Thanks your point out.
>  How about test my first program, which I copied from book(c++
> cookbook)(chapter 13 section 1, page 467)
> in your system, is that really output anything to file(length > 0)?

With that program, no, the file is empty.

If you add this line before writing to the file it works:
 out.imbue(locale("en_GB.utf8"));

$ ls -l unicode_txt
-rw-r--r-- 1 redi redi 10 Jun 30 18:12 unicode_txt

That's on a Fedora 12-based OS using GCC 4.4.3



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux