From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30862 invoked by alias); 24 Apr 2003 19:56:01 -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 30842 invoked by uid 71); 24 Apr 2003 19:56:00 -0000 Resent-Date: 24 Apr 2003 19:56:00 -0000 Resent-Message-ID: <20030424195600.30841.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, wjlcarrot@aol.com Received: (qmail 23885 invoked by uid 48); 24 Apr 2003 19:53:16 -0000 Message-Id: <20030424195316.23881.qmail@sources.redhat.com> Date: Thu, 24 Apr 2003 19:56:00 -0000 From: wjlcarrot@aol.com Reply-To: wjlcarrot@aol.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/10485: fstream.h bug X-SW-Source: 2003-04/txt/msg01054.txt.bz2 List-Id: >Number: 10485 >Category: libstdc++ >Synopsis: fstream.h bug >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Apr 24 19:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: wjlcarrot@aol.com >Release: unknown-1.0 >Organization: >Environment: GCC 3.2.2 on RedHat 8.0 >Description: fstream.h's reads spaces ifstream function reads space characters as \n characters. For example, if you have a file with only a space for a character and you try to read it in and send it to another file, the other file would have a \n character only. >How-To-Repeat: #include char buffer[2]; int main(char **argc, int argv[]){; ifstream in(add the name of a file with a space character here); ofstream out(add another filename here); in >> buffer; out << buffer; }; >Fix: >Release-Note: >Audit-Trail: >Unformatted: