Raymond Toy pushed to branch issue-327-fix-crlf-lf-eol at cmucl / cmucl Commits: 3a25c685 by Raymond Toy at 2024-06-07T06:39:39-07:00 Make CR more explicit for nntp-eof https://www.rfc-editor.org/rfc/rfc3977.html seems to say the the NNTP protocol uses CRLF as line terminators. Make the CR in `nntp-eof` more explicit. We also note here that `write-line` is used to print out the value of `nntp-eof`, so we don't need a LF character in `nntp-eof`. - - - - - 1 changed file: - src/hemlock/netnews.lisp Changes: ===================================== src/hemlock/netnews.lisp ===================================== @@ -530,9 +530,10 @@ (defsetf nn-last-read-message-number %set-nn-last-read-message-number) -(defconstant nntp-eof ". " - "NNTP marks the end of a textual response with this. NNTP also recognizes - this as the end of a post.") +(defconstant nntp-eof + (coerce '(#\. #\return) 'string) + "NNTP marks the end of a textual response with this. NNTP also + recognizes this as the end of a post.") ;;; This macro binds a variable to each successive line of input from NNTP ;;; and exits when it sees the NNTP end-of-file-marker, a period by itself on View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/3a25c68519ad166bbd33c729... -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/3a25c68519ad166bbd33c729... You're receiving this email because of your account on gitlab.common-lisp.net.