public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/10485: fstream.h bug
@ 2003-04-24 20:03 pme
  0 siblings, 0 replies; 2+ messages in thread
From: pme @ 2003-04-24 20:03 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, wjlcarrot

Synopsis: fstream.h bug

State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Thu Apr 24 20:03:01 2003
State-Changed-Why:
    Not a bug.  << and >> break up tokens on whitespace.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10485


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/10485: fstream.h bug
@ 2003-04-24 19:56 wjlcarrot
  0 siblings, 0 replies; 2+ messages in thread
From: wjlcarrot @ 2003-04-24 19:56 UTC (permalink / raw)
  To: gcc-gnats


>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 <fstream.h>
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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-24 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 20:03 libstdc++/10485: fstream.h bug pme
  -- strict thread matches above, loose matches on Subject: below --
2003-04-24 19:56 wjlcarrot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).