Re: Question of the day N2: ~\Return
Marco Antoniotti <[email protected]>
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <CAG0Nw2k5Y6HZ+Yz-C9Dtc8829ChWSV0g_M+zsH=rF2O9_M6sPA@mail.gmail.com> |
Hi everybody. no luck. I upgraded to the last SBCL version for Windows, and added the (setf *default-external-format* '(:utf-8 :newline :crlf)) in .sbclrc as the first thing. No luck. The FORMATTER still complains. All the best Marco On Wed, Jun 19, 2024 at 10:19 AM Marco Antoniotti < [email protected]> wrote: > Thanks Christophe, I'll check it out. > > I will update my SBCL and try the setting later tonight > > Marco > > On Wed, Jun 19, 2024, 10:16 Christophe Rhodes <[email protected]> wrote: > >> Marco Antoniotti <[email protected]> writes: >> >> > I like using the ~<newline> construct in FORMAT. Alas, SBCL 2.2.1 >> (Windows, W11, no WSL) complains that it does not recognize ~\Return >> > (which is the result of git clone with the usual configurations to >> handle line endings) >> > >> > If I remember correctly, this is a SBCL glitch on Windows. >> > >> > Can you confirm that this is the (very annoying) case? >> >> Since SBCL 2.3.11, we support Windows-convention newline endings on >> streams. I don't know how thoroughly integrated that is with >> defaults -- probably not very -- but if it's possible for you to use >> that version or later, you might have more success with source code >> encoded with Windows-style line endings. >> >> You might need to override the default *default-external-format* value >> to be something that actively specifies the newline convention, >> something like >> >> (setf *default-external-format* '(:utf-8 :newline :crlf)) >> >> before attempting to load any source files. >> >> Christophe >> > -- Marco Antoniotti, Professor tel. +39 - 02 64 48 79 01 DISCo, University of Milan-Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help