This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/18678] Garbage output to std::wcout under some circumstances


------- Additional Comments From rleigh at debian dot org  2004-11-29 23:50 -------
Sorry about the renaming.

Even though you aren't supposed to intermix std::cout and std::wcout, surely it
would be nicer if the undefined behaviour was the same whichever you used first?
Currently:

std::cout, std::wcout
==> wcout is garbled

std::wcout, std::cout
==> cout is silently discarded

If it would discard the invalid stream in either order, it would at least be
predictable.


Thanks,
Roger

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18678


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]