sys-file-writer: Fix encoding of several string fields.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 24 Apr 2011 03:15:18 +0000 (20:15 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 26 Apr 2011 04:13:53 +0000 (21:13 -0700)
commit5188e51e07df8f0c1dc34ee70d4cb2d3d53a6016
treee0e1a749af8b5ec7cac3e64b9ff3db1c63888705
parente73abc3fd8398051498406b2a8e81041050352d9
sys-file-writer: Fix encoding of several string fields.

PSPP keeps most string data in the dictionary in UTF-8.  The system
file writer needs to recode this data into the correct encoding, but
in several cases it failed to do so.  This fixes the problem.

Thanks to Mindaugas for reporting the problem and to John Darrington
for help diagnosing it.

Bug #33036.
src/data/sys-file-writer.c