projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r8816: Fix fast-native-to-string on 16-bit wide char Allegro
[uffi.git]
/
src
/
strings.lisp
diff --git
a/src/strings.lisp
b/src/strings.lisp
index 5fdbc89188037c2bc261cc60544e24289e1f2d88..e4d67013a80a1db25ac52324fdf0ffe4993542bb 100644
(file)
--- a/
src/strings.lisp
+++ b/
src/strings.lisp
@@
-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)
(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)
)))))