mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
use gimp_any_to_utf8().
2006-11-03 Sven Neumann <sven@gimp.org> * plug-ins/common/lcms.c: use gimp_any_to_utf8().
This commit is contained in:
parent
e667ce046a
commit
c422b2b397
|
@ -1,3 +1,7 @@
|
|||
2006-11-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/lcms.c: use gimp_any_to_utf8().
|
||||
|
||||
2006-11-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/fade-dialog.c (fade_dialog_new): use "Fade" instead
|
||||
|
|
|
@ -338,34 +338,19 @@ run (const gchar *name,
|
|||
static gchar *
|
||||
lcms_icc_profile_get_name (cmsHPROFILE profile)
|
||||
{
|
||||
const gchar *str = cmsTakeProductName (profile);
|
||||
|
||||
if (! g_utf8_validate (str, -1, NULL))
|
||||
return g_strdup (_("(invalid UTF-8 string)"));
|
||||
|
||||
return g_strdup (str);
|
||||
return gimp_any_to_utf8 (cmsTakeProductName (profile), -1, NULL);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
lcms_icc_profile_get_desc (cmsHPROFILE profile)
|
||||
{
|
||||
const gchar *str = cmsTakeProductDesc (profile);
|
||||
|
||||
if (! g_utf8_validate (str, -1, NULL))
|
||||
return g_strdup (_("(invalid UTF-8 string)"));
|
||||
|
||||
return g_strdup (str);
|
||||
return gimp_any_to_utf8 (cmsTakeProductDesc (profile), -1, NULL);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
lcms_icc_profile_get_info (cmsHPROFILE profile)
|
||||
{
|
||||
const gchar *str = cmsTakeProductInfo (profile);
|
||||
|
||||
if (! g_utf8_validate (str, -1, NULL))
|
||||
return g_strdup (_("(invalid UTF-8 string)"));
|
||||
|
||||
return g_strdup (str);
|
||||
return gimp_any_to_utf8 (cmsTakeProductInfo (profile), -1, NULL);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue