From attila.lendvai at gmail.com Tue Mar 8 00:24:48 2011 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Tue, 8 Mar 2011 01:24:48 +0100 Subject: [cl-pdf-devel] source file character encodings Message-ID: hi! in file cl-pdf/pdf-geom.lisp there are utf-8 non-readable characters in ;-comments at position 261, 6541, 6562. eventually i'll commit utf-8 version of the first one (name of the contributor Eduardo Mu?oz), and replace the other two with ASCII letters (a spanish comment). if you would like to eliminate all the three, or would like to keep things as they are, then speak up! i may or may not have lost my commit password, so if someone wants to be proactive in this, then i'd be happy to hand over the task. just please make sure that the files are readable with utf-8 encoding. -- ?attila Notice your eroding (digital) freedom, and do something about it! PGP: 2FA1 A9DC 9C1E BA25 A59C ?963F 5D5F 45C7 DFCD 0A39 OTR XMPP: 8647EEAC EA30FEEF E1B55146 573E52EE 21B1FF06 BitCoin: 154uf86Vd9rpjMULd9CXa7nVwikknYZJiB From divanov at aha.ru Wed Mar 9 08:35:29 2011 From: divanov at aha.ru (Dmitriy Ivanov) Date: Wed, 9 Mar 2011 11:35:29 +0300 Subject: [cl-pdf-devel] source file character encodings References: Message-ID: <000801cbde35$0c35da80$8100a8c0@digo> Attila Lendvai wrote on Tue, 8 Mar 2011 01:24:48 +0100 03:24: | in file cl-pdf/pdf-geom.lisp there are utf-8 non-readable characters | in ;-comments at position 261, 6541, 6562. IMHO, only Latin-1 characters shoud be allowed in source files. (Except for examples files.) -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From hraban at 0brg.net Sat Mar 26 14:54:59 2011 From: hraban at 0brg.net (Hraban Luyat) Date: Sat, 26 Mar 2011 15:54:59 +0100 Subject: [cl-pdf-devel] Fwd: cl-pdf encoded in iso-8859-15, crashes ql:quickload with utf-8 In-Reply-To: References: Message-ID: Hello cl-pdf maintainers, A problem arises when loading cl-pdf through quicklisp. I reported the error to their mailing listed and they pointed me to you. The problem is that the files seem to be encoded in latin1, which is a problem when you load them without specifying the encoding explicity. If your default encoding (utf-8 in my case) is incompatible with latin1, you get an error. In this case, the ? in one of the comments yields a byte sequence incompatible with utf-8 if encoded in latin1. While I am not exactly sure what they want you to do about this, I was hoping maybe you could at least give your opinion on the matter. Greetings, Hraban Luyat ---------- Forwarded message ---------- From: Hraban Luyat Date: 2011/3/26 Subject: cl-pdf encoded in iso-8859-15, crashes ql:quickload with utf-8 To: quicklisp at googlegroups.com Hi, Compare this normal run: [1]> (ql:quickload "cl-pdf") To load "cl-pdf": ?Load 1 ASDF system: ? ?iterate ?Install 1 Quicklisp release: ? ?cl-pdf ; Loading "cl-pdf" [package pdf]....... *** - SYSTEM::LINE-COMMENT-READER: Invalid byte sequence #xF1 #x6F #x7A #x0A in CHARSET:UTF-8 ? ? ?conversion With: [1]> (setf *default-file-encoding* charset:iso-8859-15) # [2]> (ql:quickload "cl-pdf") To load "cl-pdf": ?Load 1 ASDF system: ? ?iterate ?Install 1 Quicklisp release: ? ?cl-pdf ; Loading "cl-pdf" [package pdf]......... ("cl-pdf") The problem is with pdf-geom.lisp in the cl-pdf package, line 7: ;;; Geometry functions contributed by Eduardo Mu?oz This file is encoded in latin1/iso-8859-15 and the comment trips GNU CLISP. Who is at fault, here? cl-pdf for not defining the file encoding in the source? quicklisp for not explicitly setting *default-file-encoding*? Anyhow, this is a workaround to load cl-pdf with quicklisp if you load in utf-8 by default. Greetings, Hraban Luyat From attila.lendvai at gmail.com Mon Mar 28 00:09:12 2011 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Mon, 28 Mar 2011 02:09:12 +0200 Subject: [cl-pdf-devel] source file character encodings In-Reply-To: References: Message-ID: > in file cl-pdf/pdf-geom.lisp there are utf-8 non-readable characters > in ;-comments at position 261, 6541, 6562. > > eventually i'll commit utf-8 version of the first one (name of the > contributor Eduardo Mu?oz), and replace the other two with ASCII > letters (a spanish comment). > > if you would like to eliminate all the three, or would like to keep > things as they are, then speak up! fyi, i got rid of the non-ascii characters and comitted the change to svn. -- ?attila Notice your eroding (digital) freedom, and do something about it! PGP: 2FA1 A9DC 9C1E BA25 A59C ?963F 5D5F 45C7 DFCD 0A39 OTR XMPP: 8647EEAC EA30FEEF E1B55146 573E52EE 21B1FF06 BitCoin: 154uf86Vd9rpjMULd9CXa7nVwikknYZJiB