- return data_out_legacy (input, LEGACY_NATIVE, format, output);
+ const struct fmt_number_style *style = settings_get_style (format->type);
+ char *output;
+ char *t ;
+ assert (fmt_check_output (format));
+
+ output = xmalloc (format->w + style->extra_bytes + 1);
+
+ converters[format->type] (input, format, output);
+
+ t = recode_string_pool (UTF8, encoding, output, format->w, pool);
+ free (output);
+ return t;
+}
+
+char *
+data_out (const union value *input, const char *encoding, const struct fmt_spec *format)
+{
+ return data_out_pool (input, encoding, format, NULL);