gui: Recode syntax files on load and save.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 13 May 2011 04:07:12 +0000 (21:07 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 13 May 2011 04:07:12 +0000 (21:07 -0700)
commit380110cc2fc8ee8511c2c4a1b3ee1da8a70cdb18
tree86c0a1d5f60c5aa412866ad7195dbde0fd703464
parentb6ff9071cb7359e7d6b06ee01064116117876c16
gui: Recode syntax files on load and save.

This adds a new widget that allows an encoding to be selected to the
File|Open dialog box, as well as to the File|Save As... dialog box
for syntax files only.  Files are recoded to UTF-8 on load and back
to the original encoding on save.

File|Recent Files doesn't yet properly save the encoding information.
That's coming up in the next commit.

Bug #33254.
Thanks to John Darrington for reporting this problem.
Smake
src/ui/gui/automake.mk
src/ui/gui/helper.c
src/ui/gui/psppire-data-window.c
src/ui/gui/psppire-encoding-selector.c [new file with mode: 0644]
src/ui/gui/psppire-encoding-selector.h [new file with mode: 0644]
src/ui/gui/psppire-syntax-window.c
src/ui/gui/psppire-syntax-window.h
src/ui/gui/psppire-window.c