convert the filename to UTF-8 before displaying it in the error message.
2008-09-11 Michael Natterer <mitch@gimp.org> * plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script): convert the filename to UTF-8 before displaying it in the error message. svn path=/trunk/; revision=26923
This commit is contained in:

committed by
Michael Natterer

parent
13a7c01115
commit
53d82016bc
@ -704,9 +704,12 @@ script_fu_load_script (const GimpDatafileData *file_data,
|
||||
|
||||
if (! script_fu_run_command (command, &error))
|
||||
{
|
||||
gchar *display_name = g_filename_display_name (file_data->filename);
|
||||
|
||||
g_message (_("Error while loading\n\"%s\"\n\n%s"),
|
||||
file_data->filename, error->message);
|
||||
display_name, error->message);
|
||||
g_clear_error (&error);
|
||||
g_free (display_name);
|
||||
}
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
|
Reference in New Issue
Block a user