X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fhelper.c;h=31633de9fff3ae8ded4105b44cab4d3d682f41cd;hb=729b96a6bd9342c45e6f65a113fd87c70da85b0a;hp=bec6716689a9501561ced5fe0edcdb4451fd6b01;hpb=f15c854d8500105766b2f5666bb62b983ff24f88;p=pspp-builds.git diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index bec67166..31633de9 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -49,11 +49,11 @@ /* Formats a value according to FORMAT The returned string must be freed when no longer required */ gchar * -value_to_text (union value v, struct fmt_spec format) +value_to_text (union value v, const struct dictionary *dict, struct fmt_spec format) { gchar *s = 0; - s = data_out (&v, &format); + s = data_out (&v, dict_get_encoding (dict), &format); g_strchug (s); return s;