psppire-syntax-window: Recode file from final encoding, not original one.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 4 Apr 2014 04:59:47 +0000 (21:59 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 4 Apr 2014 04:59:47 +0000 (21:59 -0700)
commitb20b80bfeb88eca603cb5c10b5a7188387fd23fd
tree2d429db5df54b5947408d09a9f4718f6a49698ea
parentacd6ff28909652b1e0230764b7133909163b5fd3
psppire-syntax-window: Recode file from final encoding, not original one.

When syntax_load() reads a syntax file, it can guess the correct encoding
using encoding_guess_whole_file().  When it does that, it's supposed to
use the guessed encoding to recode the file data into UTF-8.  In fact, it
was using the original (NULL or "") encoding, which didn't work out well.
This commit makes it use the guessed encoding.

Bug #41975.
Reported by Mindaugas.
src/ui/gui/psppire-syntax-window.c