[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with UTF-8 string and dbus
From: |
Julien Danjou |
Subject: |
Bug with UTF-8 string and dbus |
Date: |
Tue, 08 Jun 2010 23:39:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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é")
(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 = SDATA (Fstring_make_unibyte (object));
(gdb) print (char *) val
$6 = 0x253e830 "Emacs", <incomplete sequence \351>
Is this normal? If yes, how to fix? If no, where's the bug?
Thanks,
--
Julien Danjou
// ᐰ <address@hidden> http://julien.danjou.info
pgpBUZxl6p1OK.pgp
Description: PGP signature
- Bug with UTF-8 string and dbus,
Julien Danjou <=
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/08
- Re: Bug with UTF-8 string and dbus, Jan Djärv, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Julien Danjou, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Andreas Schwab, 2010/06/09