X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fsys-file-reader.c;h=fb4f6f93defcc8cc7486fd3039fe7a36f8efd37a;hb=503f53bfdde87fc40466dadb77bc04cee0be2567;hp=84d7f83c4c422a502272ec47039aeb3bb5889b18;hpb=90f346cc015bb89d28c93e35ba2e23d6671e14f2;p=pspp-builds.git diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index 84d7f83c..fb4f6f93 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -778,7 +778,12 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, case 20: /* New in SPSS 16. Contains a single string that describes the character encoding, e.g. "windows-1252". */ - break; + { + char *encoding = calloc (size, count + 1); + read_string (r, encoding, count + 1); + dict_set_encoding (dict, encoding); + return; + } case 21: /* New in SPSS 16. Encodes value labels for long string