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

sbcl freebsd source encoding

46 views
Skip to first unread message

Antony

unread,
Feb 8, 2012, 11:32:45 AM2/8/12
to
Hi

I am trying sbcl on freebsd
It fails to load hunchentoot cause it fails with
* (asdf:oos 'asdf:load-op :hunchentoot)

debugger invoked on a LOAD-SYSTEM-DEFINITION-ERROR in thread
#<THREAD "initial thread" RUNNING {1002988FB3}>:
Error while trying to load definition for system rfc2388 from pathname
/usr/home/antony/git/thirdparty/rfc2388/rfc2388.asd:
decoding error on stream
#<SB-SYS:FD-STREAM
for "file /usr/home/antony/git/thirdparty/rfc2388/rfc2388.asd"
{1003B0A883}>
(:EXTERNAL-FORMAT :ASCII):
the octet sequence (196) cannot be decoded.

I think this is because rfc2388.asd is in utf-8 and contains non ascii
stuff.

How do I indicate this info to sbcl
-Antony

Zach Beane

unread,
Feb 8, 2012, 11:35:57 AM2/8/12
to
One option is to start SBCL with a UTF-8 locale. On my Linux system,
that means setting LANG to "en_US.utf8". Your environment may need
something slightly different.

Zach

Antony

unread,
Feb 8, 2012, 11:45:21 AM2/8/12
to
On 2/8/2012 8:35 AM, Zach Beane wrote:
> Antony<remove+spam...@gmail.com> writes:
>> I think this is because rfc2388.asd is in utf-8 and contains non ascii
>> stuff.
>>
>> How do I indicate this info to sbcl
>
> One option is to start SBCL with a UTF-8 locale. On my Linux system,
> that means setting LANG to "en_US.utf8". Your environment may need
> something slightly different.

Yes, that worked on freebsd too.
I now run it as
LANG=en_US.UTF-8 sbcl --no-userinit
My Linux env seems to have that set, so does not need it.

Thanks,
-Antony
0 new messages