Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error using quicklisp to install hunchentoot with clisp on archlinux

177 views
Skip to first unread message

gavino

unread,
Feb 4, 2012, 11:39:18 PM2/4/12
to
[8]> (ql:quickload "hunchentoot")
To load "hunchentoot":
Load 1 ASDF system:
hunchentoot
; Loading "hunchentoot"

*** - Error while trying to load definition for system rfc2388 from pathname
/home/g/quicklisp/dists/quicklisp/software/rfc2388-20120107-http/rfc2388.asd:
SYSTEM::STRING-READER: Invalid byte #xC4 in CHARSET:ASCII conversion
The following restarts are available:
ABORT :R1 Give up on "hunchentoot"
ABORT :R2 Abort main loop

gavino

unread,
Feb 5, 2012, 10:04:02 PM2/5/12
to
anyone seen this error?

Zach Beane

unread,
Feb 7, 2012, 6:02:08 AM2/7/12
to
One option: Don't use CLISP.

Zach

Pascal J. Bourguignon

unread,
Feb 7, 2012, 10:21:29 AM2/7/12
to
Another option: learn to set the encodings in clisp.

For example:

;; For file contents:
(setf custom:*default-file-encoding* (ext:make-encoding :charset charset:utf-8
:line-terminator
:unix))

;; For file pathnames:
(setf custom:*pathname-encoding* (ext:make-encoding :charset charset:iso-8859-1
:line-terminator
:unix))

;; For the terminal input/output:
(setf custom:*terminal-encoding* (ext:make-encoding :charset charset:utf-8
:line-terminator
:unix))

;; For FFI, etc.
(setf custom:*misc-encoding* (ext:make-encoding :charset charset:utf-8
:line-terminator
:unix))

You may also set them with the -E option:

clisp -ansi -E utf-8 -Epathname iso-8859-1


--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.

Sam Steingold

unread,
Feb 7, 2012, 10:37:37 AM2/7/12
to
> * gavino <tnip...@tznvy.pbz> [2012-02-04 20:39:18 -0800]:
http://clisp.org/impnotes/faq.html#faq-enc-err

--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://memri.org http://iris.org.il http://palestinefacts.org
http://americancensorship.org http://ffii.org http://dhimmi.com
Don't ascribe to malice what can be adequately explained by stupidity.

pre...@gmail.com

unread,
Jun 14, 2012, 9:48:23 PM6/14/12
to
I saw this error as well. I eventually got Hunchentoot to work with CLISP. All I did was open the file (there's just lisp code in there) causing this error in Notepad++ (I'm using Windows 7) and converted the encoding to ANSI and I never got this error again. I also had to install OPENSSL (Win32 OpenSSL v1.0.1c, DON'T use the light version, it won't work,) to make CL+SSL work. I used the 32-bit version of OPEN-SSL even though I'm using a 64-bit machine, since the error I saw for CL+SSL had 32 written in the missing .dll file. Hopefully this helps someone.

daniel....@excite.com

unread,
Jun 14, 2012, 10:04:25 PM6/14/12
to
On Tuesday, February 7, 2012 6:02:08 AM UTC-5, Zach Beane wrote:
>
> One option: Don't use CLISP.

SBCL works really well on Linux.

pre...@gmail.com

unread,
Jun 14, 2012, 10:29:59 PM6/14/12
to
Well, SBCL on Windows got stumped by the same encoding problem as GNU CLISP on Windows 7. I tried Clozure CL but it's 64-bit version doesn't work with CL+SSL (it'll work without it but you have to skip loading it by looking at the other restarts by typing :R and choosing 7 to skip loading it, but this will probably cause problems later), it's 32 bit version works properly with Hunchentoot and CL+SSL.

pre...@gmail.com

unread,
Jun 14, 2012, 10:39:15 PM6/14/12
to
On Thursday, June 14, 2012 7:04:25 PM UTC-7, (unknown) wrote:
Also SBCL doesn't seem to load it's init file on Windows, or at least the file that Quicklisp thought was its init file on Windows. It also has "Your Kittens of Death awaits" on Windows which isn't really too helpful, although it's never had any problems for any code I've tested it with.

Sam Steingold

unread,
Jun 17, 2012, 1:13:40 PM6/17/12
to
> * gavino <tnip...@tznvy.pbz> [2012-02-04 20:39:18 -0800]:
>
> [8]> (ql:quickload "hunchentoot")
> To load "hunchentoot":
> Load 1 ASDF system:
> hunchentoot
> ; Loading "hunchentoot"
>
> *** - Error while trying to load definition for system rfc2388 from pathname
> /home/g/quicklisp/dists/quicklisp/software/rfc2388-20120107-http/rfc2388.asd:
> SYSTEM::STRING-READER: Invalid byte #xC4 in CHARSET:ASCII
> conversion

http://clisp.org/impnotes/faq.html#faq-enc-err



--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://jihadwatch.org http://americancensorship.org
http://mideasttruth.com http://dhimmi.com http://openvotingconsortium.org
Good mood is sexually transmitted.

Christophe Rhodes

unread,
Jun 17, 2012, 3:28:22 PM6/17/12
to
Sam Steingold <s...@gnu.org> writes:

>> *** - Error while trying to load definition for system rfc2388 from pathname
>> /home/g/quicklisp/dists/quicklisp/software/rfc2388-20120107-http/rfc2388.asd:
>> SYSTEM::STRING-READER: Invalid byte #xC4 in CHARSET:ASCII
>> conversion
>
> http://clisp.org/impnotes/faq.html#faq-enc-err

Why don't you make the error message from CLISP include this URL?

Christophe

Sam Steingold

unread,
Jun 18, 2012, 10:31:33 AM6/18/12
to
> * Christophe Rhodes <pf...@pnagno.arg> [2012-06-17 20:28:22 +0100]:
because the url is only useful to to the person who sees the message for
the first time.

also, googling for
"Invalid byte" CHARSET conversion clisp
finds the FAQ right away.

--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://dhimmi.com http://jihadwatch.org
http://camera.org http://thereligionofpeace.com http://palestinefacts.org
Linux: Telling Microsoft where to go since 1991.
0 new messages