projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd2104e
)
sys-file-reader: Take string encoding into account for text records.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 24 Apr 2011 05:10:20 +0000
(22:10 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 26 Apr 2011 04:13:53 +0000
(21:13 -0700)
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.
src/data/sys-file-reader.c
patch
|
blob
|
history
diff --git
a/src/data/sys-file-reader.c
b/src/data/sys-file-reader.c
index 6a5afff226130937f8ae387019ca538a705a2cee..aa94e6d63dbeae583f39fd3153d9f5044c50860d 100644
(file)
--- 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)