public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: preprocessor/6489: tradcpp0 fails on line ending with '\r\n'
@ 2002-05-03 13:41 jakub
  0 siblings, 0 replies; 2+ messages in thread
From: jakub @ 2002-05-03 13:41 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, winter

Synopsis: tradcpp0 fails on line ending with '\r\n'

State-Changed-From-To: open->closed
State-Changed-By: jakub
State-Changed-When: Fri May  3 13:41:09 2002
State-Changed-Why:
    Fixed.

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


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

* preprocessor/6489: tradcpp0 fails on line ending with '\r\n'
@ 2002-04-27 10:26 winter
  0 siblings, 0 replies; 2+ messages in thread
From: winter @ 2002-04-27 10:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6489
>Category:       preprocessor
>Synopsis:       tradcpp0 fails on line ending with '\r\n'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 27 10:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     winter@alum.mit.edu
>Release:        gcc-3.0.4
>Organization:
>Environment:
Athlon, Redhat 6.2, gcc-3.0.4 built/installed from source using
default configuration
>Description:
When g77 preprocesses a file (using tradcpp0), if it encounters
a line like 

  #include "fname"\r\n

it fails with the message

  #include expects "fname" or <fname>

Stepping through tradcpp0 with gdb reveals that it fails
to strip off the trailing \r (although it successfully handles
the \n) and thus concludes that the line is bogus.

Furthermore, manual removal of \r from the file (using 
for instance fromdos) "fixes" the problem.
>How-To-Repeat:
Replace any line of the form
  #include "fname"\n
with 
  #include "fname"\r\n
in a fortran source code and the problem should be repeatable.
>Fix:
Whatever code strips the trailing \n should also include
stripping of trailing \r\n combinations.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-05-03 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-03 13:41 preprocessor/6489: tradcpp0 fails on line ending with '\r\n' jakub
  -- strict thread matches above, loose matches on Subject: below --
2002-04-27 10:26 winter

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).