Package: cl-png
Version: 0.4-1
Severity: important
When I try to use cl-png with SBCL 0.8.19:
(png:decode-file ".../something.png")
I receive the following error:
The value #\� is not of type BASE-CHAR.
[Condition of type TYPE-ERROR]
Restarts:
0: [ABORT] Abort handling SLIME request.
1: [DESTROY-THREAD] Destroy this thread (19422)
Backtrace:
0: (SB-KERNEL:HAIRY-DATA-VECTOR-SET 3 "..." 1 #\�)[:EXTERNAL]
1: (SB-KERNEL:VECTOR-TO-VECTOR* 2 "..." SIMPLE-BASE-STRING)[:EXTERNAL]
2: (ZLIB-FROM-CL-PDF::C-UNCOMPRESS #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP
#X08279AC8 :TYPE (* (UNSIGNED 8))> #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP
#X08279BF8 :TYPE (* (SIGNED 32))> "..." 73)
3: ("varargs entry for ZLIB-FROM-CL-PDF:UNCOMPRESS-STRING" "..."
:UNCOMPRESSED-SIZE 300)
4: (PNG::DECODE-IDAT #(24 211 133 144 49 18 192 64 8 2 ...) 300)
5: (PNG::DECODE-IMAGE #<unavailable argument>)
...
The problem is apparently in the function PNG::DECODE-IDAT, which
converts binary data to strings and back in order to be able to call a
ZLIB-FROM-CL-PDF function. Perhaps using zlib.cl, which is a native
Common Lisp library not messing with strings, or utilizing cl-inflate
would be a better idea?
-- System Information:
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Versions of packages cl-png depends on:
ii common-lisp-controller 4.12 This is a Common Lisp source and c
-- no debconf information