From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [bug] org-link-escape and (wrong-type-argument stringp nil) Date: Mon, 20 Sep 2010 20:57:00 +0200 Message-ID: <87mxrc1bwj.wl%dmaus@ictsoc.de> References: <87tylkwpq0.fsf@mundaneum.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1771826614==" Return-path: Received: from [140.186.70.92] (port=55313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxlYA-0008Bu-Fi for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 14:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxlY8-0003H0-S3 for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 14:57:14 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:47197) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxlY8-0003GO-NA for emacs-orgmode@gnu.org; Mon, 20 Sep 2010 14:57:12 -0400 In-Reply-To: <87tylkwpq0.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?B?U8OpYmFzdGllbg==?= Vauban Cc: emacs-orgmode@gnu.org --===============1771826614== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Sep_20_20:56:59_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Mon_Sep_20_20:56:59_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable S=C3=A9bastien Vauban wrote: >Hello, >With current git pull, and such an Org file (in UTF-8 encoding): > ... >I get the following error when trying to export it via PDFLaTeX: The problem is, that the '=C3=89' character is not in Org's default list for link escapes but `string-match' matches for the lower case character. Adding more chars to `org-link-escape-chars' would solve the problem, but this seems to be a broder issue: Regular links (URIs) are restricted to a special set of ASCII characters and non-ascii chars are hex-encoded. Currently Org escapes links to Org mode headlines using the table mentioned above. But Org files and hence Org headlines might be Unicode, containing multibyte characters that cannot be hex-escaped in the normal fashion. =20 Maybe something like this would be a solution: - Org only escapes square brackets when escaping a link to an Org mode headline - `org-link-escape' uses a shotgun-approach: Every char that is not allowed according to the specs (Cf. RFC3986) is percent encoded if the link sequence does not contain multibyte chars; If the sequence does contain multibyte chars, `org-link-escape' produces an IRI (Cf. RFC3987). HTH, -- David --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Mon_Sep_20_20:56:59_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkyXrnsACgkQma24O1pEeOZswwEAnD7zGIVs0WIL5aIsiIZwOO5E FMlFnYm7fTlcFuPduE0BAOkPEFsH1WTyrF5fDOQk8o2/2r9TcPWtZ/1t7SJo2xgG =/L+n -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Sep_20_20:56:59_2010-1-- --===============1771826614== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1771826614==--