Commit ff2391a6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

pass the name to filesystem encoding to gimp_image_set_filename(). Fixes

2004-10-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: pass the name to filesystem encoding to
	gimp_image_set_filename(). Fixes bug #153751 for the JPEG plug-in.
parent d001c177
2004-10-29 Sven Neumann <sven@gimp.org>
* plug-ins/common/jpeg.c: pass the name to filesystem encoding to
gimp_image_set_filename(). Fixes bug #153751 for the JPEG plug-in.
2004-10-29 Sven Neumann <sven@gimp.org>
 
* app/file/file-utils.c (file_utils_uri_to_utf8_filename): when
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
......@@ -413,9 +413,18 @@ run (const gchar *name,
switch (export)
{
case GIMP_EXPORT_EXPORT:
display_ID = gimp_display_new (image_ID);
gimp_image_set_filename (image_ID, _("Export Preview"));
gimp_displays_flush ();
{
gchar *tmp = g_filename_from_utf8 (_("Export Preview"), -1,
NULL, NULL, NULL);
if (tmp)
{
gimp_image_set_filename (image_ID, tmp);
g_free (tmp);
}
display_ID = gimp_display_new (image_ID);
gimp_displays_flush ();
}
break;
case GIMP_EXPORT_IGNORE:
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment