changeset 27887:bbd148cd6866

convert utf8 url string into locale encoding on passing it to the browser.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 07 Sep 2008 04:13:31 +0000
parents faee69fed1c2
children 0ee06de49812
files pidgin/gtknotify.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtknotify.c	Sat Sep 06 19:13:49 2008 +0000
+++ b/pidgin/gtknotify.c	Sun Sep 07 04:13:31 2008 +0000
@@ -1073,12 +1073,15 @@
 pidgin_notify_uri(const char *uri)
 {
 #ifndef _WIN32
-	char *escaped = g_shell_quote(uri);
+	char *tmp = g_shell_quote(uri);
+	char *escaped = g_locale_from_utf8(tmp, -1, NULL, NULL, NULL);
 	char *command = NULL;
 	char *remote_command = NULL;
 	const char *web_browser;
 	int place;
 
+	g_free(tmp);
+
 	web_browser = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/browsers/browser");
 	place = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/browsers/place");