SBCL 使用中文时的错误记录 --close 问题已经解决

*Message* 缓冲区

Wrote /Users/admin/code/CLISP/game-cn.lisp
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
byte-code: Beginning of buffer [5 times]
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
=> T
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
=> GAME-MAIN
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
call-interactively: Buffer is read-only: #<buffer *slime-error*>
Mark set [2 times]
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
call-interactively: Buffer is read-only: #<buffer *sldb sbcl/2*>
Evaluation aborted on #<SB-FASL::FASL-HEADER-MISSING {100363E373}>.
 [Sole completion]
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message
error in process filter: slime-dispatch-event: Invalid protocol message
error in process filter: Invalid protocol message


*sime-error* 缓冲区

Invalid protocol message:
Error during string-to-utf8: The value 36755 is not of type (UNSIGNED-BYTE 8).


(:write-string "\x8F93\x5165\x4F60\x7684 \x5DE5\x4F5C: ")

【解决办法】

在 lispbox.el 中增加下面这条语句,就可以让SBCL很好地支持中文了

(setq inferior-lisp-program "dx86cl64 -K utf-8")
(setq inferior-lisp-program "sbcl -K utf-8")
第一条是给 CCL用的,第二条是给 SBCL 用的

你可能感兴趣的:(SBCL 使用中文时的错误记录 --close 问题已经解决)