public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9662: Can't mix wcout with stdout
@ 2003-05-16 20:00 bkoz
  0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2003-05-16 20:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, peturr02

Synopsis: Can't mix wcout with stdout

State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Fri May 16 20:00:47 2003
State-Changed-Why:
    This is fixed on mainline, but not on the 3.3.x branch. Should this
    just be closed?
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9662


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/9662: Can't mix wcout with stdout
@ 2003-02-11 13:06 peturr02
  0 siblings, 0 replies; 2+ messages in thread
From: peturr02 @ 2003-02-11 13:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9662
>Category:       libstdc++
>Synopsis:       Can't mix wcout with stdout
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 11 13:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     peturr02@ru.is
>Release:        gcc-3.2.1
>Organization:
>Environment:
Red Hat Linux 8.0
>Description:
Operations on wcout cause stdout to become byte-oriented (as reported by fwide) and thus prevent the use of fputwc etc. on stdout.

This seems to violate 27.3 [lib.iostream.objects] p2.
>How-To-Repeat:
See attachment.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="wstdiosync.cc"
Content-Disposition: inline; filename="wstdiosync.cc"

#include <iostream>
#include <cstdio>
#include <cwchar>

#undef NDEBUG
#include <cassert>

int main()
{
	using namespace std;

	wcout << L"Hello, ";
	assert(fwide(stdout, 0) >= 0);
	fputws(L"world!\n", stdout);

	return 0;
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-16 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 20:00 libstdc++/9662: Can't mix wcout with stdout bkoz
  -- strict thread matches above, loose matches on Subject: below --
2003-02-11 13:06 peturr02

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).