This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
RE: wcout oddness
- To: Rob Taylor <robt at flyingpig dot com>
- Subject: RE: wcout oddness
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 10 Aug 2000 10:28:01 -0700 (PDT)
- cc: libstdc++ <libstdc++ at sourceware dot cygnus dot com>
> I mean
> std::cout <<"test\n";
> flushes
>
> ..and
> std::wcout << L"test\n"
fyi this does not guarantee a flush.
> endl works fine in both cases, of course, but I've got quite a bit of code
> floating around here that assumes that '/n' will flush cout that i want to
> convert to wcout, and I don't relish the prospect of sticking std::endl
> everywhere.... ;)
...endl does explictly call flush though. This is per the standard...
> #include <iostream>
> main()
> {
> std::wcout << L"test\n";
> }
however......the destruction of this (wide) stream should also flush. So,
something wrong with the current (wide) clean up code.
I'll look into it: thanks.
Do you happen to have example code that uses UTF8 conversions? If so, can
you send it to me?
-benjamin