From: Ben Pfaff Date: Sun, 24 Apr 2011 05:10:20 +0000 (-0700) Subject: sys-file-reader: Take string encoding into account for text records. X-Git-Tag: v0.7.8~38 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e73abc3fd8398051498406b2a8e81041050352d9;p=pspp-builds.git sys-file-reader: Take string encoding into account for text records. 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. --- diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index 6a5afff2..aa94e6d6 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -430,6 +430,7 @@ sfm_open_reader (struct file_handle *fh, struct dictionary **dictp, 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)