Reported by Hans-Josef Salm; checked by Chris Rankin, Jordan Russell
The situation: I had a source file that had originated on a
MAC under Think Pascal. As I now know, it had some lines only
ending with $0A [LF] rather than the normal sequence $0D $0A [CR-LF].
Result: Syntax checker, debugger messed up their line count.
In addition, the edit/search-function when searching only the
source code of one file would give a weird error and occasionally
blow the system.
Note from checker:
I was able to reproduce the error with the debugger, but not the error
with the edit/search function. Interestingly enough, Delphi has no
trouble saving, loading and compiling with LF-terminated lines.
However I was unable to persuade the editor to replace the LFs with
CR-LFs.
Jordan Russell:
The debugger problem appears to still exist in Delphi versions up to and including 5.01. I can successfully compile a unit with LFs, but Step Over (F8) and Run to Cursor (F4) don't work. Interestingly, I found that Delphi 1's debugger works with LFs. |