[slime-devel] slime and utf-8

Угодай n/a ugoday at gmail.com
Tue Jan 1 19:47:18 UTC 2008


hi, all. I have such the linux system:

~% uname -a
Linux rys 2.6.23-ARCH #1 SMP PREEMPT Fri Dec 21 20:26:31 CET 2007
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD
GNU/Linux

~% locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE=C
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

~% pacman -Qs emacs
local/emacs-cvs 20071029-1
    Gnu Emacs from CVS
local/slime-cvs 20070115-3
    The Superior Lisp Interaction Mode for Emacs

~% pacman -Qs sbcl
local/sbcl 1.0.12-1
    Steel Bank Common Lisp

My emacs work with MULE and I wrote in ~/.emacs:

;;lisp
;;; The SBCL binary and command-line arguments
(setq inferior-lisp-program "/usr/bin/sbcl --noinform")

;;slime
(setq slime-net-coding-system 'utf-8-unix)
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime")
(require 'slime)
(slime-setup)
(slime-setup :autodoc t)

but if I try to run the such code

(pushnew #p"/home/ugoday/.sbcl/systems/uffi/"
asdf:*central-registry*b. :test #'equal)
(asdf:operate 'asdf:load-op :uffi)
(pushnew #p"/home/ugoday/.sbcl/systems/curl/" asdf:*central-registry*
:test #'equal)
(asdf:operate 'asdf:load-op :curl)
(curl:with-connection-returning-string (:cookies t)
	   (curl:set-option :url "http://ya.ru")
	   (curl:perform))

slime tells me

c-string decoding error (:external-format :UTF-8):
  the octet sequence 2 cannot be decoded.
   [Condition of type SB-INT:C-STRING-DECODING-ERROR]

what can I do to fix this?



More information about the slime-devel mailing list