From issues-return-533-apmail-stdcxx-issues-archive=stdcxx.apache.org@stdcxx.apache.org Wed Mar 12 23:10:20 2008 Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 68330 invoked from network); 12 Mar 2008 23:10:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 23:10:20 -0000 Received: (qmail 70891 invoked by uid 500); 12 Mar 2008 23:10:17 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 70869 invoked by uid 500); 12 Mar 2008 23:10:17 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 70858 invoked by uid 99); 12 Mar 2008 23:10:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 16:10:17 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 23:09:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 558DC234C092 for ; Wed, 12 Mar 2008 16:08:46 -0700 (PDT) Message-ID: <495701573.1205363326349.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 16:08:46 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Closed: (STDCXX-333) [gcc 3.2.3/Linux] 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 [ https://issues.apache.org/jira/browse/STDCXX-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor closed STDCXX-333. ------------------------------- Resolution: Fixed Fixed by resolving STDCXX-435. > [gcc 3.2.3/Linux] 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, 4.2.0 > Environment: gcc 3.2.3 on Linux > Reporter: Mark Brown > Assignee: Martin Sebor > Priority: Minor > Fix For: 4.2.1 > > > I get an an abort when I run the following program on Linux. > {noformat} > #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 > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.