r8816: Fix fast-native-to-string on 16-bit wide char Allegro
authorKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 2 Apr 2004 21:20:57 +0000 (21:20 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Fri, 2 Apr 2004 21:20:57 +0000 (21:20 +0000)
debian/changelog
src/strings.lisp

index c11dff4bef443fdf54166d6c42ac05380f6ce839..d4f6e8a8cd545184d88b75d1e3c0a7205b226801 100644 (file)
@@ -1,3 +1,9 @@
+cl-uffi (1.4.7-1) unstable; urgency=low
+
+  * Fix fast-native-to-string on 16-bit wide char Allegro
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Fri,  2 Apr 2004 14:20:36 -0700
+
 cl-uffi (1.4.6-1) unstable; urgency=low
 
   * New upstream
index 5fdbc89188037c2bc261cc60544e24289e1f2d88..e4d67013a80a1db25ac52324fdf0ffe4993542bb 100644 (file)
@@ -329,4 +329,4 @@ that LW/CMU automatically converts strings from c-calls."
   (let* ((len (or len (strlen s)))
          (str (make-string len)))
       (dotimes (i len str)
-        (setf (aref str i) (uffi:deref-array s '(:array :char) i)))))
+        (setf (schar str i) (code-char (uffi:deref-array s '(:array :byte) i))))))