Dear List,<br><br>the attached patch fixes a bug which makes sbcl users unable to compress pdf streams using non unicode encodings.<br><br>The problem is with the function call (sb-ext:string-to-octets string :start start :end end) in salza-deflate::string-to-octets. salza-deflate::string-to-octets in cl-pdf gets strings only which can be encoded with single byte encoding. (earlier functions map exceptional characters of the used encoding as if it was a single-byte encoding) So it should use sb-ext:string-to-octets with arguments :external-format :iso-8859-1 to avoid re-encoding with non-single-byte or "non-identity" encoding. (defult external format is: utf-8)<br>
<br>This fix works with unicode and non-unicode encodings, as well.<br><br> Please take a look at the attached patch. Unless there are objections or suggestions, Attila Lendvai will commit it eventually.<br>
<br>Regards,<br>Roland Lohner<br>