[libgnome-keyring] [dbus] Fix encoding problems with keyring names and foreign characters.



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]