[Bese-devel] Re: encoding-keyword-to-native...

Marco Baringer mb at bese.it
Mon Jul 3 12:26:51 UTC 2006


"Attila Lendvai" <attila.lendvai at gmail.com> writes:

>     #-(or (and sbcl sb-unicode) (and clisp unicode))
>     (progn
>       (defun encoding-keyword-to-native (encoding)
>         (case encoding
>           (:utf-8 :utf8)
>           (:utf-16 :utf16)
>           (:us-ascii :us-ascii)
>           (t encoding)))
>       (defun %string-to-octets (string encoding)

i could have sworn this was already implemented :(

btw, it should probably be:

(defun encoding-keyword-to-native (encoding) encoding)

> it would be good if you could test its correctness and we could add it to
> arnesi. try to find some openmcl docs/examples. is openmcl unicode ready at
> all?

openmcl is not unicode aware.

> (arnesi:write-string-to-file "áűüóé" #P"/tmp/x" :external-format :utf-8)
> (arnesi:read-string-from-file #P"/tmp/x" :external-format :utf-8)

openmcl is latin-9 only

> if you are looking for the easiest solution then just try another lisp, sbcl
> should work if it's available.

this is not a valid option considering sbcl's lack of threads on
ppc. :(

-- 
-Marco
Ring the bells that still can ring.
Forget your perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the bese-devel mailing list