mirror of https://github.com/GNOME/gimp.git
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:
parent
13a7c01115
commit
53d82016bc
|
@ -1,3 +1,9 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2008-09-11 Michael Natterer <mitch@gimp.org>
|
2008-09-11 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
|
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
|
||||||
|
|
|
@ -704,9 +704,12 @@ script_fu_load_script (const GimpDatafileData *file_data,
|
||||||
|
|
||||||
if (! script_fu_run_command (command, &error))
|
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"),
|
g_message (_("Error while loading\n\"%s\"\n\n%s"),
|
||||||
file_data->filename, error->message);
|
display_name, error->message);
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
|
g_free (display_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
|
Loading…
Reference in New Issue