Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 35132 invoked from network); 2 Feb 2007 22:45:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 22:45:26 -0000 Received: (qmail 11774 invoked by uid 500); 2 Feb 2007 22:45:32 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 11762 invoked by uid 500); 2 Feb 2007 22:45:32 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 11751 invoked by uid 99); 2 Feb 2007 22:45:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 14:45:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 14:45:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 80FAF71408A for ; Fri, 2 Feb 2007 14:45:05 -0800 (PST) Message-ID: <11976371.1170456305510.JavaMail.jira@brutus> Date: Fri, 2 Feb 2007 14:45:05 -0800 (PST) From: "Mark Brown (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-333) std::wfilebuf extracts more than 1 character from a 1 byte file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org std::wfilebuf extracts more than 1 character from a 1 byte file --------------------------------------------------------------- Key: STDCXX-333 URL: https://issues.apache.org/jira/browse/STDCXX-333 Project: C++ Standard Library Issue Type: Bug Components: 27. Input/Output Affects Versions: 4.1.3 Environment: gcc 3.2.3 on Linux Reporter: Mark Brown I get an an abort when I run the following program on Linux. #include #include #include int main () { { std::filebuf fb; fb.open ("file", std::ios::out); fb.sputc ('a'); } std::wfilebuf fb; fb.pubimbue (std::locale ("en_US.UTF-8")); fb.open ("file", std::ios::in); const int c[] = { fb.sbumpc (), fb.sgetc () }; std::cout << c [0] << ' ' << c [1] << std::endl; assert (L'a' == c [0]); assert (std::wfilebuf::traits_type::eof () == c [1]); } test: test.cpp:21: int main(): Assertion `std::wfilebuf::traits_type::eof () == c [1]' failed. Aborted -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.