[hunchentoot-devel] [PATCH] invalid byte sequence failure in clisp

Victor Kryukov victor.kryukov at gmail.com
Wed Feb 6 06:20:36 UTC 2008


Hello group,

when I'm trying to asdf-load hunchentoot 0.15 in clisp 2.41[2], I'm
receiving the following error message[1].

The problem is that Luís Oliveira's name in two files, port-clisp.lisp
and unix-clisp.lisp, is encoded with latin-1, while clisp expects
utf-8, as explained here[3].

BTW, his name spelling is inconsistent in these two files, and
according to [4], Luís Oliveira is the right one.

My patch to fix that behaviour is below[5] (it fixes the issue for clisp
and hunchentoot still compiles on SBCL) - I basically saved both files
in utf-8 and changes Luís' name spelling in port-clisp.lisp - although
I'm not sure if "darcs diff -u" will handle all the charcodes intelligently.

Regards,
Victor.

[1] Error message:

;; Compiling file /home/victor/src/clbuild/source/hunchentoot/port-clisp.lisp ...
*** - invalid byte sequence #xED #x76 #x65 in CHARSET:UTF-8 conversion
The following restarts are available:
RETRY          :R1      
Retry performing #<ASDF:COMPILE-OP NIL #x000333DCD9A0> on #<ASDF:CL-SOURCE-FILE
  "port-clisp" #x000333DCB850>.
ACCEPT         :R2      
Continue, treating #<ASDF:COMPILE-OP NIL #x000333DCD9A0> on #<ASDF:CL-SOURCE-FILE
  "port-clisp" #x000333DCB850> as having been successful.
ABORT          :R3      ABORT
Break 1 [2]> 

[2] clisp --version

victor at esculap:~/src/clbuild/source/hunchentoot$ clisp --version
GNU CLISP 2.41 (2006-10-13) (built on victor-desktop [127.0.1.1])
Software: GNU C 4.1.2 20061103 (prerelease) (Ubuntu 4.1.1-18ubuntu2) 
/usr/bin/gcc-4.1 -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O -DUNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -x none libcharset.a libavcall.a libcallback.a /usr/lib/libreadline.so -lncurses -ldl   -L/usr/lib -lsigsegv 
SAFETY=0 TYPECODES WIDE GENERATIONAL_GC SPVW_BLOCKS SPVW_MIXED TRIVIALMAP_MEMORY
libsigsegv 2.4
libreadline 5.2
Features: 
(ASDF CLC-OS-DEBIAN COMMON-LISP-CONTROLLER CLX-ANSI-COMMON-LISP CLX READLINE
 REGEXP SYSCALLS I18N LOOP COMPILER CLOS MOP CLISP ANSI-CL COMMON-LISP LISP=CL
 INTERPRETER SOCKETS GENERIC-STREAMS LOGICAL-PATHNAMES SCREEN FFI GETTEXT
 UNICODE BASE-CHAR=CHARACTER PC386 UNIX)
C Modules: (clisp i18n syscalls regexp readline linux clx)
Installation directory: /usr/lib/clisp/
User language: ENGLISH
Machine: X86_64 (X86_64) esculap.gateway.2wire.net [192.168.1.73]

[3] http://objectmix.com/lisp/339187-unicode-file-clisp.html

[4] http://www.cl-user.net/asp/l1-A5/sdataQ0So-oWAO7WqDQ3XMHpX8yBX8yBXnMq=/sdataQu3F$sSHnB==

[5]

diff -rN -u old-hunchentoot/port-clisp.lisp new-hunchentoot/port-clisp.lisp
--- old-hunchentoot/port-clisp.lisp	2008-02-06 00:07:40.000000000 -0600
+++ new-hunchentoot/port-clisp.lisp	2008-02-06 00:07:40.000000000 -0600
@@ -1,7 +1,7 @@
 ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: HUNCHENTOOT; Base: 10; -*-
 ;;; $Header: /usr/local/cvsrep/hunchentoot/port-clisp.lisp,v 1.1 2007/12/29 17:35:01 edi Exp $
 
-;;; Copyright (c) 2006, Luis Olíveira <loliveira at common-lisp.net>.
+;;; Copyright (c) 2006, Luís Oliveira <loliveira at common-lisp.net>.
 ;;; Copyright (c) 2007, Anton Vodonosov <avodonosov at yandex.ru>.
 ;;; Copyright (c) 2007, Dr. Edmund Weitz.
 ;;; All rights reserved.
diff -rN -u old-hunchentoot/unix-clisp.lisp new-hunchentoot/unix-clisp.lisp
--- old-hunchentoot/unix-clisp.lisp	2008-02-06 00:07:40.000000000 -0600
+++ new-hunchentoot/unix-clisp.lisp	2008-02-06 00:07:40.000000000 -0600
@@ -1,7 +1,7 @@
 ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: HUNCHENTOOT; Base: 10; -*-
 ;;; $Header: /usr/local/cvsrep/hunchentoot/unix-clisp.lisp,v 1.1 2007/12/29 17:35:01 edi Exp $
 
-;;; Copyright (c) 2006, Luís Oliveira <loliveira at common-lisp.net>.
+;;; Copyright (c) 2006, Luís Oliveira <loliveira at common-lisp.net>.
 ;;; Copyright (c) 2007, Anton Vodonosov <avodonosov at yandex.ru>.
 ;;; Copyright (c) 2007, Dr. Edmund Weitz.
 ;;; All rights reserved.





More information about the Tbnl-devel mailing list