有一个包含外语字符的 s 表达式文件,我正在阅读如下:
(defun test (file)
(with-open-file (stream file)
(loop while (read stream nil nil))))
它在 ccl 1.8 中读取文件没有错误,但在 1.9 下抛出错误:
? (test "/users/markklein/desktop/naples.text")
> Error: Reader error: Illegal symbol syntax.
> While executing: CCL::%PARSE-TOKEN, in process Listener(5).
> Type cmd-. to abort, cmd-\ for a list of available restarts.
> Type :? for other options.
1 >
有谁知道出了什么问题,以及如何解决?我可以根据要求发送数据文件。