This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/18678] Garbage output to std::wcout under some circumstances
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2004 23:21:07 -0000
- Subject: [Bug libstdc++/18678] Garbage output to std::wcout under some circumstances
- References: <20041126002106.18678.rleigh@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-11-29 23:21 -------
Please, don't reopen a PR changing completely the topis: is completely confusing.
Anyway, as you say, this is well outside the c++ spec: according to 27.3, c++
cannot mix operations **and**, by default (missing a sync_with_stdio(false))
must by synced **char-by-char** with STDIO. Therefore, cout and wcout output can
only happen via putc/putwc, as you can see in include/ext/stdio_sync_filebuf.h.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18678