Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Interaction with UI    [ Add a report in this area ]  
Report #:  64663   Status: Open
Compiler do not detect the same linebreaks as IDE
Project:  Delphi Build #:  11.0.2902.10471
Version:    11.2 Submitted By:   Alexander Alexeev
Report Type:  Minor failure / Design problem Date Reported:  7/20/2008 11:48:40 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   262575
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The IDE detects #13, #13#0 and #10 as line breaks.
The compiler does not detect #13 as line break.
Therefore, sometimes it is possible that compiler detect an error in source file and IDE highlights the wrong line.

http://delphikingdom.com/images/stoneimage_70_1.gif - the file with several #13 delimiters.
http://delphikingdom.com/images/stoneimage_70_2.gif - the corrected file (no #13 delimiters).

http://delphikingdom.com/images/stoneimage_70_3.gif - the hex view of the problem.
Steps to Reproduce:
Try to compile attached project.
The problem is in linebreak after line "unit Unit1;"
Workarounds
Use some external text editor and resave file with selecting "line break style" to "Windows" or use some "repair line breaks" function, etc.
Attachment
LineBreakDemoProject.zip
Comments

None

Server Response from: ETNACODE01