diff options
author | Bilal Akhtar <bilalakhtar@ubuntu.com> | 2011-01-14 09:51:41 +0300 |
---|---|---|
committer | Bilal Akhtar <bilalakhtar@ubuntu.com> | 2011-01-14 09:51:41 +0300 |
commit | b21ab567f7df082fe563bba6c7a83bd51ebe3af1 (patch) | |
tree | 3313ed06e9aeae4f62cc6cad56e7d465b3d4792a /src/libaudgui/infowin.c | |
parent | 07e574f5af231698b8bce9157fd2fee2b07c4395 (diff) |
Imported Upstream version 2.4.3
Diffstat (limited to 'src/libaudgui/infowin.c')
-rw-r--r-- | src/libaudgui/infowin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libaudgui/infowin.c b/src/libaudgui/infowin.c index fdb6303..c103aba 100644 --- a/src/libaudgui/infowin.c +++ b/src/libaudgui/infowin.c @@ -774,6 +774,15 @@ static void infowin_show (const gchar * filename, const Tuple * tuple, tmp = g_strdup (filename); string_decode_percent (tmp); + + /* Convert invalid UTF-8 URI's quietly. */ + if (! g_utf8_validate (tmp, -1, NULL)) + { + gchar * copy = str_to_utf8 (tmp); + g_free (tmp); + tmp = copy; + } + gtk_label_set_text ((GtkLabel *) location_text, easy_read_filename (tmp)); g_free (tmp); |