[slime-devel] clisp without unicode patch

Hoehle, Joerg-Cyril Joerg-Cyril.Hoehle at t-systems.com
Tue Jan 17 13:24:31 UTC 2006


Hi,

I thought about alternatives and rejected them. Probably this patch is just fine as is and it should not raise an error when Emacs uses UTF-8 or anything and clisp was only built with 8bit strings --without-unicode.

2006-01-14  Joerg Hoehle <hoehle at users.sourceforge.net>

	* swank-clisp (find-encoding): work in a 8bit clisp w/o #-UNICODE.

--- swank-clisp.lisp.orig	2005-11-12 00:43:43.000000000 +0100
+++ swank-clisp.lisp	2006-01-14 13:17:08.000000000 +0100
@@ -122,7 +122,9 @@
 		   (:iso-latin-1-unix "iso-8859-1")
 		   (:utf-8-unix       "utf-8")
 		   (:euc-jp-unix      "euc-jp"))))
-    (ext:make-encoding :charset charset :line-terminator :unix)))
+    (ext:make-encoding :charset (if (member :unicode *features*)
+				    charset :default)
+		       :line-terminator :unix)))
   
 (defimplementation accept-connection (socket
 				      &key (external-format :iso-latin-1-unix)

The idea in the present patch is that (untested) the same set of slime.fas files might possibly work in both builds of clisp: with and without unicode.  But you'd need to compile from the 8bit version.

Regards,
	Jorg Hohle.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clisp-non-unicode.patch
Type: application/octet-stream
Size: 674 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20060117/2af68bb4/attachment.obj>


More information about the slime-devel mailing list