From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Bug with UTF-8 string and dbus Date: Tue, 08 Jun 2010 23:39:19 +0200 Message-ID: <87typdnr08.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1276033178 12996 80.91.229.12 (8 Jun 2010 21:39:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2010 21:39:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 08 23:39:37 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OM6WG-0005x7-Sg for ged-emacs-devel@m.gmane.org; Tue, 08 Jun 2010 23:39:37 +0200 Original-Received: from localhost ([127.0.0.1]:34202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM6WG-00025q-B2 for ged-emacs-devel@m.gmane.org; Tue, 08 Jun 2010 17:39:36 -0400 Original-Received: from [140.186.70.92] (port=39811 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM6W7-000259-FR for emacs-devel@gnu.org; Tue, 08 Jun 2010 17:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OM6W5-0001PY-Bv for emacs-devel@gnu.org; Tue, 08 Jun 2010 17:39:27 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:59600 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM6W5-0001PK-7L for emacs-devel@gnu.org; Tue, 08 Jun 2010 17:39:25 -0400 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id C62C15C148; Tue, 8 Jun 2010 23:39:21 +0200 (CEST) Original-Received: from keller.adm.naquadah.org (chapai.naquadah.org [82.227.158.144]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id C88B65C11E for ; Tue, 8 Jun 2010 23:39:19 +0200 (CEST) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1OM6Vz-00047l-8t for emacs-devel@gnu.org; Tue, 08 Jun 2010 23:39:19 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125644 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, While coding notifications.el, I found an odd bug here. When using it with some UTF-8 chars in a string (like 'title' or 'body'), Emacs raises a D-Bus error because it did not received a reply. But reading dbus-monitor, it did NOT send a method call. I can reproduce it easily with: (dbus-call-method :session "org.freedesktop.Notifications" "/org/freedesktop/Notifications" "org.freedesktop.Notifications" "Notify" :string "Emacs=C3=A9") (this is not a valid call for Notify, but anyhow it should send the call) I've tried to break on inside dbus.c:xd_append_arg and what I got is: 492 char *val =3D SDATA (Fstring_make_unibyte (object)); (gdb) print (char *) val $6 =3D 0x253e830 "Emacs", Is this normal? If yes, how to fix? If no, where's the bug? Thanks, =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwOuIcACgkQpGK1HsL+5c0HsQCfW64KH/v/g644DxfMaiSaciig 2/kAoOOTOZW8c/ZjF/UXAJyACk3gzOPd =eUGj -----END PGP SIGNATURE----- --=-=-=--