use uri instead of the pathname for UTF-8 safety.
Wed Mar 10 00:24:24 2004 Jonathan Blandford <jrb@gnome.org> * gtk/gtkfilechooserdefault.c (error_dialog): use uri instead of the pathname for UTF-8 safety.
This commit is contained in:
committed by
Jonathan Blandford
parent
382bf3a113
commit
5d8863bbac
@ -606,13 +606,16 @@ error_dialog (GtkFileChooserDefault *impl,
|
||||
const GtkFilePath *path,
|
||||
GError *error)
|
||||
{
|
||||
char *uri;
|
||||
char *text;
|
||||
|
||||
uri = gtk_file_system_path_to_uri (impl->file_system, path);
|
||||
text = g_strdup_printf (msg,
|
||||
gtk_file_path_get_string (path),
|
||||
error->message);
|
||||
uri,
|
||||
error->message);
|
||||
error_message (impl, text);
|
||||
g_free (text);
|
||||
g_free (uri);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user