[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix D-Bus string encoding.
From: |
Julien Danjou |
Subject: |
[PATCH] Fix D-Bus string encoding. |
Date: |
Wed, 9 Jun 2010 11:16:21 +0200 |
Signed-off-by: Julien Danjou <address@hidden>
---
This fix the problem described in <address@hidden>
src/ChangeLog | 5 +++++
src/dbusbind.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index 16e1b87..daa9ea7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-09 Julien Danjou <address@hidden>
+
+ * dbusbind.c (xd_append_arg): Fix string encoding: it has to be
+ valid UTF-8.
+
2010-06-08 Dan Nicolaescu <address@hidden>
* lread.c (X_OK): Remove, unused.
diff --git a/src/dbusbind.c b/src/dbusbind.c
index a72a955..4a17fb4 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -489,7 +489,7 @@ xd_append_arg (dtype, object, iter)
case DBUS_TYPE_OBJECT_PATH:
case DBUS_TYPE_SIGNATURE:
{
- char *val = SDATA (Fstring_make_unibyte (object));
+ char *val = SDATA (ENCODE_UTF_8 (object));
XD_DEBUG_MESSAGE ("%c %s", dtype, val);
if (!dbus_message_iter_append_basic (iter, dtype, &val))
XD_SIGNAL2 (build_string ("Unable to append argument"), object);
--
1.7.1
- Re: Bug with UTF-8 string and dbus, (continued)
- 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
- Re: Bug with UTF-8 string and dbus, Michael Albinus, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Davis Herring, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Andreas Schwab, 2010/06/09
- Re: Bug with UTF-8 string and dbus, David Kastrup, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Andreas Schwab, 2010/06/09
- Message not available
- Re: Bug with UTF-8 string and dbus, Andreas Schwab, 2010/06/10
[PATCH] Fix D-Bus string encoding.,
Julien Danjou <=