[libgnome-keyring] [dbus] Fix encoding problems with keyring names and foreign characters.
- From: Pablo Castellano <pablog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-keyring] [dbus] Fix encoding problems with keyring names and foreign characters.
- Date: Tue, 27 Jul 2010 15:39:15 +0000 (UTC)
commit ad6da9a5377d98a7af0f543e0745a83735df4bcd
Author: Pablo Castellano <pablog src gnome org>
Date: Tue Jul 27 17:30:54 2010 +0200
[dbus] Fix encoding problems with keyring names and foreign characters.
* Creating keyrings with a label that contained non-ascii charaters
was broken.
library/gkr-misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/library/gkr-misc.c b/library/gkr-misc.c
index 5e9f9d7..02ffda0 100644
--- a/library/gkr-misc.c
+++ b/library/gkr-misc.c
@@ -60,7 +60,7 @@ encode_object_identifier (GString *string, const gchar* name, gssize length)
/* Special characters are encoded with a _ */
} else {
- g_string_append_printf (string, "_%02x", (unsigned int)ch);
+ g_string_append_printf (string, "_%02x", (unsigned int)(unsigned char)ch);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]