dictionary: Make dict_create() take the new dictionary's encoding.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 24 Apr 2011 04:40:48 +0000 (21:40 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 26 Apr 2011 04:13:53 +0000 (21:13 -0700)
commitd9fc15ceb74cdc66487ba9aaed04246170729640
tree3a4c0f2abd35a2e8f7d05ef72e6dcf1522461088
parent7731fa51f095e615975cd53d35ba3cb681b82df1
dictionary: Make dict_create() take the new dictionary's encoding.

There are several places in the PSPP tree that create dictionaries,
but few of them actually set an encoding.  This causes most
dictionaries to be in the default encoding, which is often not
correct.

By making dict_create() take the encoding as a parameter we force
the caller to think about the encoding issue up-front.
14 files changed:
perl-module/PSPP.xs
src/data/dataset.c
src/data/dictionary.c
src/data/dictionary.h
src/data/gnumeric-reader.c
src/data/por-file-reader.c
src/data/psql-reader.c
src/data/sys-file-reader.c
src/language/data-io/combine-files.c
src/language/data-io/data-list.c
src/language/data-io/get-data.c
src/language/stats/aggregate.c
src/ui/gui/psppire-data-editor.c
src/ui/gui/text-data-import-dialog.c