From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29306 invoked by alias); 11 Feb 2003 13:06:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29288 invoked by uid 71); 11 Feb 2003 13:06:00 -0000 Resent-Date: 11 Feb 2003 13:06:00 -0000 Resent-Message-ID: <20030211130600.29286.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, peturr02@ru.is Received: (qmail 26628 invoked by uid 48); 11 Feb 2003 13:01:20 -0000 Message-Id: <20030211130120.26627.qmail@sources.redhat.com> Date: Tue, 11 Feb 2003 13:06:00 -0000 From: peturr02@ru.is Reply-To: peturr02@ru.is To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/9662: Can't mix wcout with stdout X-SW-Source: 2003-02/txt/msg00495.txt.bz2 List-Id: >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 #include #include #undef NDEBUG #include int main() { using namespace std; wcout << L"Hello, "; assert(fwide(stdout, 0) >= 0); fputws(L"world!\n", stdout); return 0; }