[cl-pdf-devel] Isolated a problem...

Alexandros Diamantidis adia at hellug.gr
Tue Aug 29 07:59:27 UTC 2006


* Jonathon McKitrick [2006-08-28 23:28]:
> On Mon, Aug 28, 2006 at 01:32:47PM -0700, Peter Seibel wrote:
> : >I've been telling my boss for months now that I just can't get ©  
> : 
> : Did you mean to type A-caret copyright in the paragraph above.  
> 
> No, I didn't.  I thought I had banished A-caret from my system.

You've probably solved this by now, but in case you haven't... The
character "©" in UTF-8 is represented by the bytes #xc2 #xa9, which if
interpreted as Latin-1 correspond to "©" - I just tried converting your
test-case.lisp to Latin-1 and loading it in sbcl in a Latin-1 locale
and it works correctly (no A-caret appears in the output).

BTW, I wasn't able to make it work in a UTF-8 locale - if I try to just
load the Latin-1 source, it gives the following error:

debugger invoked on a SB-INT:STREAM-DECODING-ERROR:
  decoding error on stream
  #<SB-SYS:FD-STREAM for "file /home/adia/test-case.lisp" {ACA1E19}>
  (:EXTERNAL-FORMAT :UTF-8):
    the octet sequence (169) cannot be decoded.

If I load it with:

(load "test-case.lisp" :external-format :latin-1)

the A-caret appears again. I'll probably have to read the SBCL manual to
be able to tell what's going on :-)

Alexandros



More information about the cl-pdf-devel mailing list