libstdc++/10578: std::getline not stripping \r

bdawes@acm.org bdawes@acm.org
Thu May 1 12:56:00 GMT 2003


>Number:         10578
>Category:       libstdc++
>Synopsis:       std::getline not stripping \r
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 01 12:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Beman Dawes, John Maddock
>Release:        unknown-1.0
>Organization:
>Environment:
GCC 3.2.3 on Win32
>Description:
Beman Dawes reports:

I've just upgraded GCC from 3.2.1 to 3.2.3 for Win32 regression testing, and regex_timer had to be killed manually because it was looping.

Same results on a second machine.

John Maddock reports:

I have the same problem: it appears to be a bug in libg++ std::getline: the lines are being returned with a trailing \r on the end of each line - stripping all the \r's from the input text file used by that test fixes the issue.

[This is the Boost regex_timer regression test being discussed.]

--Beman
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list