projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert to utf8 in data_out function.
[pspp-builds.git]
/
src
/
ui
/
gui
/
helper.c
diff --git
a/src/ui/gui/helper.c
b/src/ui/gui/helper.c
index a4c07ca46d78ae74efd5317f3a7b87216578b1ee..31633de9fff3ae8ded4105b44cab4d3d682f41cd 100644
(file)
--- a/
src/ui/gui/helper.c
+++ b/
src/ui/gui/helper.c
@@
-49,13
+49,11
@@
/* Formats a value according to FORMAT
The returned string must be freed when no longer required */
gchar *
/* 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;
{
gchar *s = 0;
- s = g_new (gchar, format.w + 1);
- data_out (&v, &format, s);
- s[format.w]='\0';
+ s = data_out (&v, dict_get_encoding (dict), &format);
g_strchug (s);
return s;
g_strchug (s);
return s;