Commit 6b85b999 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

convert the stuff returned by strftime() to UTF-8 before displaying it.

2003-08-14  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/plugindetails.c (get_plugin_info): convert the
	stuff returned by strftime() to UTF-8 before displaying it. Fixes
	bug #119316.
parent ec8365d9
2003-08-14 Michael Natterer <mitch@gimp.org>
* plug-ins/common/plugindetails.c (get_plugin_info): convert the
stuff returned by strftime() to UTF-8 before displaying it. Fixes
bug #119316.
2003-08-14 Michael Natterer <mitch@gimp.org>
 
* app/widgets/gimppreview.c (gimp_preview_button_press_event):
......@@ -847,9 +847,18 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
{
strncpy (xtimestr, utf8, sizeof (xtimestr));
xtimestr[sizeof (xtimestr) - 1] = 0;
g_free (utf8);
}
}
else
strcpy (xtimestr,"");
......
......@@ -847,9 +847,18 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
{
strncpy (xtimestr, utf8, sizeof (xtimestr));
xtimestr[sizeof (xtimestr) - 1] = 0;
g_free (utf8);
}
}
else
strcpy (xtimestr,"");
......
......@@ -847,9 +847,18 @@ get_plugin_info (PDesc *pdesc,
tx = time_ints[loop];
if (tx)
{
gchar *utf8;
x = localtime (&tx);
ret = strftime (xtimestr, sizeof (xtimestr), "%c", x);
xtimestr[ret] = 0;
if ((utf8 = g_locale_to_utf8 (xtimestr, -1, NULL, NULL, NULL)))
{
strncpy (xtimestr, utf8, sizeof (xtimestr));
xtimestr[sizeof (xtimestr) - 1] = 0;
g_free (utf8);
}
}
else
strcpy (xtimestr,"");
......
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