Compiling files with traditional Mac EOL in CMUCL

"Chun Tian (binghe)" <[email protected]> Wed, 6 Sep 2017 11:30:33 +0200
Newsgroups gmane.lisp.cmucl.devel
Message-ID <CAEXPsJOF2gW04vQVV0-6P7i-ZS0uGmPLu5-Mo51ntscLz3s3cQ@mail.gmail.com>
Hi,

I'm surprised that CMUCL doesn't support lisp files with traditional Mac
EOL, that is, lines are separated by a single '\r', there's no `\n` at all.

Here is my recent story: I'm porting some old Lisp code originally
developed in Macintosh Common Lisp 4.2. All files use Mac EOL. I can't
convert them to Unix EOL, because that will break some Lisp functions in
MCL.  The problem when compiling these files in CMUCL is, if there's a
line-based comment starting with semicolon ";", CMUCL compiler will
consider all the rest code in the file is at the "same" line, thus they're
all commented!  It looks like CMUCL has correctly compiled the file
(because there's no warning at all), but actually it compiled almost
nothing.

SBCL and LispWorks have no such issues, I can imagine Clozure CL must
natively support Mac EOL.

Is this a CMUCL bug that can be fixed?

Regards,

Chun Tian

-- 
Chun Tian (binghe)
University of Bologna (Italy)
_______________________________________________
cmucl-imp mailing list
[email protected]
https://lists.zs64.net/mailman/listinfo/cmucl-imp