Mercurial > pidgin.yaz
diff pidgin/gtknotify.c @ 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 | 128f1d7e12ff |
children | 6ecfc6b9667c |
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");