X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable.c;h=2de1790161bafcdc97726af16bfcf5757fd630eb;hb=44c2b035a7526fdf366271de915fc774df302f96;hp=a86f407d5f3aa18cab0bbc0376a7eb603de3ceb9;hpb=f15c854d8500105766b2f5666bb62b983ff24f88;p=pspp-builds.git diff --git a/src/output/table.c b/src/output/table.c index a86f407d..2de17901 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -518,7 +519,8 @@ tab_natural_dimensions (struct tab_table *t, struct outp_driver *d, from V, displayed with format spec F. */ void tab_value (struct tab_table *table, int c, int r, unsigned char opt, - const union value *v, const struct fmt_spec *f) + const union value *v, const struct dictionary *dict, + const struct fmt_spec *f) { char *contents; @@ -537,7 +539,7 @@ tab_value (struct tab_table *table, int c, int r, unsigned char opt, } #endif - contents = data_out_pool (v, f, table->container); + contents = data_out_pool (v, dict_get_encoding (dict), f, table->container); table->cc[c + r * table->cf] = ss_cstr (contents); table->ct[c + r * table->cf] = opt; @@ -578,7 +580,7 @@ tab_fixed (struct tab_table *table, int c, int r, unsigned char opt, #endif double_value.f = val; - s = data_out_pool (&double_value, &f, table->container); + s = data_out_pool (&double_value, "FIXME-tab_fixed", &f, table->container); cp = s; while (isspace ((unsigned char) *cp) && cp < &s[w]) @@ -629,7 +631,7 @@ tab_double (struct tab_table *table, int c, int r, unsigned char opt, #endif double_value.f = val; - s = data_out_pool (&double_value, fmt, table->container); + s = data_out_pool (&double_value, "FIXME-tab_double", fmt, table->container); cp = s; while (isspace ((unsigned char) *cp) && cp < s + fmt->w)