[cl-pdf-devel] latin-2 + sbcl + hungarian characters
Dmitriy Ivanov
divanov at aha.ru
Wed Feb 6 07:41:40 UTC 2008
Hello Roland,
| I use cl-pdf with sbcl and latin-2 encoded fonts.
| A serious problem occurs with 4 hungarian characters.
| ...snip...|
| An svn diff is included to this mail. It solves the problem via use of
| function 'char-external-code and definition of *latin-2-charset*. This
| patch solves my problem. Please take a look at the attached patch.
As *latin-2-encoding* is an instance of custom-encoding, not just
single-byte-encoding, your approach is not quite universal. The proposed
method on charset
(defmethod charset ((encoding (eql *latin-2-encoding*)))
*latin-2-charset*)
displaces the "standard value" :latin-2, which is stored in the charset slot
and seems to work fine for the others. So your proposal could potentially
defeat other Lisp implementations.
Just expanding the definition of char-external-code for SBCL would be a
better solution. I feel that that should be enough but do not know how to do
that.
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru
More information about the cl-pdf-devel
mailing list