From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmFuIELDtmNrZXI=?= Subject: Re: Re: org-protocol: non-ASCII characters Date: Sat, 06 Feb 2010 15:35:06 +0100 Message-ID: <4B6D7E1A.3030807@jboecker.de> References: <86tyu2d5xw.fsf@mn.cs.uvic.ca> <4B693FBD.9010608@jboecker.de> <86d40k9702.fsf_-_@mn.cs.uvic.ca> <4B6D73A2.8000403@jboecker.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070102030900020200010300" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndllc-0002cl-AG for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:36:12 -0500 Received: from [199.232.76.173] (port=54047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndllb-0002cd-UY for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:36:11 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndllb-0008He-8h for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:36:11 -0500 Received: from mail7.worldserver.net ([217.13.200.27]:50258) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ndlla-0008Gu-L6 for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:36:11 -0500 In-Reply-To: <4B6D73A2.8000403@jboecker.de> 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: dmg@uvic.ca Cc: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------070102030900020200010300 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 06.02.2010 14:50, Jan Böcker wrote: > AFAIK, your current approach is correct. I was wrong. The attached patch fixes a bug in the encode_uri function. That fixes the non-ASCII characters problem in xournal for me. The gchar type is just typedef'd to char, which means it is signed. To get the byte value, it must be cast to unsigned int first. - Jan --------------070102030900020200010300 Content-Type: text/plain; name="encode_uri.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="encode_uri.patch" ZGlmZiAtLWdpdCBhL3NyYy94by1taXNjLmMgYi9zcmMveG8tbWlzYy5jCmluZGV4IDZmMDUy OGMuLmMyNTgyYzcgMTAwNjQ0Ci0tLSBhL3NyYy94by1taXNjLmMKKysrIGIvc3JjL3hvLW1p c2MuYwpAQCAtMjQ0MSw4ICsyNDQxLDggQEAgdm9pZCBlbmNvZGVfdXJpKGdjaGFyICplbmNv ZGVkX3VyaSwgZ2ludCBidWZzaXplLCBjb25zdCBnY2hhciAqdXJpKQogICAgICAgaWYgKGsg KyA0ID49IGJ1ZnNpemUpCiAgICAgICAgIGJyZWFrOwogICAgICAgZW5jb2RlZF91cmlbaysr XSA9ICclJzsKLSAgICAgIGVuY29kZWRfdXJpW2srK10gPSBoZXhhW3VyaVtpXSAvIDE2XTsK LSAgICAgIGVuY29kZWRfdXJpW2srK10gPSBoZXhhW3VyaVtpXSAlIDE2XTsKKyAgICAgIGVu Y29kZWRfdXJpW2srK10gPSBoZXhhWyh1bnNpZ25lZCBjaGFyKXVyaVtpXSAvIDE2XTsKKyAg ICAgIGVuY29kZWRfdXJpW2srK10gPSBoZXhhWyh1bnNpZ25lZCBjaGFyKXVyaVtpXSAlIDE2 XTsKICAgICB9CiAgIH0KICAgZW5jb2RlZF91cmlba10gPSAwOwo= --------------070102030900020200010300 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 --------------070102030900020200010300--