The 'encoding' member of struct sfm_reader was not filled in anywhere,
so it was always NULL, which meant that the recode operation in
open_text_record() was a no-op.
how the rest of the header data is to be interpreted. */
dict = dict_create (choose_encoding (r, extensions[EXT_INTEGER],
extensions[EXT_ENCODING]));
how the rest of the header data is to be interpreted. */
dict = dict_create (choose_encoding (r, extensions[EXT_INTEGER],
extensions[EXT_ENCODING]));
+ r->encoding = dict_get_encoding (dict);
/* These records don't use variables at all. */
if (document != NULL)
/* These records don't use variables at all. */
if (document != NULL)