【发布时间】:2023-03-31 09:15:01
【问题描述】:
我正在尝试通过quicklisp 在slime 中加载hunchentoot,并收到以下错误:
READ error during COMPILE-FILE:
:ASCII stream decoding error on
#<SB-SYS:FD-STREAM
for "file [redacted]/dists/quicklisp/software/rfc2388-20120107-http/rfc2388.asd"
{100607B723}>:
the octet sequence #(196) cannot be decoded.
(in form starting at line: 29, column: 29,
file-position: 1615)
[Condition of type ASDF:LOAD-SYSTEM-DEFINITION-ERROR]
我在尝试运行时得到这个:
(ql:quickload "hunchentoot")
或者简单地说:
(ql:quickload "rfc2388")
好像其他人也是gettingthis。我在一个可能的答案中找到了一个hint,说:
The system file is encoded as UTF-8.
I'm not sure how to configure things so that SBCL on Windows starts with
UTF-8 as its default encoding for loading sources, but that's what you
need to do.
从那里,我尝试过(基于例如 [this] 将以下内容添加到我的 emacs 配置中:
(set-language-environment "UTF-8")
(setq slime-lisp-implementations
'((sbcl ("/opt/local/bin/sbcl") :coding-system utf-8-unix)))
(setq slime-net-coding-system 'utf-8-unix)
但是...即使在完全重新启动 emacs 之后,我仍然遇到同样的错误,以确保我有一个新的 Slime 正在读取上述配置。
那么,我错过了什么,和/或我怎样才能加载它?
提前致谢! (更感谢您的成功回答。;)
【问题讨论】:
-
试试这个:(setq slime-net-coding-system 'utf-8-unix)
-
@VsevolodDyomkin:你会注意到我已经尝试过了(见最后一段文本的最后一行)......我需要做些什么来让 sbcl 自己看到这个吗?该变量似乎(如果我正确阅读文档)控制网络连接(我认为是 swank?),但是什么控制 SBCL 的启动?
标签: utf-8 common-lisp slime sbcl quicklisp