[Sbcl-help] load give error, but paste into sbcl works

9 views
Skip to first unread message

Jinsong Zhao

unread,
Aug 25, 2020, 9:43:36 AM8/25/20
to SBCL help
Hi there,

I have save the source code of bottle-song with correct at
http://www.99-bottles-of-beer.net/language-common-lisp-114.html
into a file named "beer.lisp"

And then load it from sbcl, and it give error:
...
; Use *BREAK-ON-SIGNALS* to intercept.
;
; error in FORMAT: Unknown directive (character: Return)
...
; ~1%~:*~]~]~}~0%
; ^
;
; compilation unit finished
; caught 1 ERROR condition

But if I paste the code to sbcl, it works.

I don't know what's the difference of both operations.

Best,
Jinsong



_______________________________________________
Sbcl-help mailing list
Sbcl...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-help

Michał "phoe" Herda

unread,
Aug 25, 2020, 9:54:01 AM8/25/20
to sbcl...@lists.sourceforge.net
On 25.08.2020 15:43, Jinsong Zhao wrote:
> error in FORMAT: Unknown directive (character: Return)

This is likely an error in how SBCL treats file endings on Windows.

Are you able to format the file to use Unix file endings and try loading
it again in SBCL?

Jinsong Zhao

unread,
Aug 25, 2020, 7:18:27 PM8/25/20
to sbcl...@lists.sourceforge.net
On 2020/8/25 21:53, Michał "phoe" Herda wrote:
> On 25.08.2020 15:43, Jinsong Zhao wrote:
>> error in FORMAT: Unknown directive (character: Return)
>
> This is likely an error in how SBCL treats file endings on Windows.
>
> Are you able to format the file to use Unix file endings and try loading
> it again in SBCL?
>

Thank you very much. After converting the line break in Windows file to
Unix file. It works.

Best,
Jinsong

Reply all
Reply to author
Forward
0 new messages