X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.c;h=bd6e2198f4efc7ca276dc2b04cc79645e4338534;hb=a10cebe053263d7e936b6533a3dbf5ac2f0586a1;hp=e14ab06ad76a5a7d0ebc39ef5b2f70a941de1016;hpb=9683d7528884fcb3c60705812de9f96889536388;p=pspp-builds.git diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index e14ab06a..bd6e2198 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -90,8 +90,9 @@ get_widget_assert (GladeXML *xml, const gchar *name) return w; } -/* Converts a string in the pspp locale to utf-8 */ -char * +/* Converts a string in the pspp locale to utf-8. + The return value must be freed when no longer required*/ +gchar * pspp_locale_to_utf8 (const gchar *text, gssize len, GError **err) { return recode_string (CONV_PSPP_TO_UTF8, text, len);