+ Yuhei Kuratomi yuhei_k@mac.com:
| # (defun read-one-line (file enc) | # (with-open-file (strm file :direction :input :external-format enc) | # (read-line strm))) | | And I have two files, one is encoded in UTF-8 and the other is in EUC- | JP. It seems that reading either encodings results in the same | behavior. | | When I call the function in REPL, | | # CL-USER> (read-one-line "test-utf8.txt" :utf-8) | | the prompt never comes back.
Have you set up the proper coding system for communication between the lisp backend and slime? What happens if you just type in a string containing some Unicode characters at the prompt? (With quotes of course, so you expect to just get the string back.)
Here is how I set it up for slime (from my .emacs file):
(setq slime-lisp-implementations '((sbcl ("sbcl") :coding-system utf-8-unix) (cmucl ("cmucl") :coding-system iso-latin-1-unix)))
- Harald