From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19684 invoked by alias); 27 Aug 2003 11:09:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19673 invoked by uid 48); 27 Aug 2003 11:09:12 -0000 Date: Wed, 27 Aug 2003 11:09:00 -0000 From: "peturr02 at ru dot is" To: gcc-bugs@gcc.gnu.org Message-ID: <20030827110907.12077.peturr02@ru.is> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg03043.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077 Summary: wcin.rdbuf()->in_avail() return value too high Product: gcc Version: 3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: peturr02 at ru dot is CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu When stdin is bound to a regular file, wcin.rdbuf()->showmanyc() returns the number of bytes in the file, which may be higher than the number of characters in the file when using multibyte character sets such as utf-8.