Convert syntax files to UTF-8 before loading them.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 2 May 2010 13:20:38 +0000 (15:20 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 2 May 2010 13:20:38 +0000 (15:20 +0200)
commit0f8c9c6c05632de5cadc70ca5381c1d9cb46960e
treedf73e95e3bf708b95709389e70808219167cfd71
parent9389f9870643a519cf69b84a9388a0a40315d903
Convert syntax files to UTF-8 before loading them.

Convert the contents of a syntax file to UTF-8 before loading
it into the syntax window. Fixes bug #29733
This change assumes that the files to be loaded are in the
encoding of the current locale.  If this assumption is not
true, then an error will be displayed and the file not loaded.
src/ui/gui/psppire-syntax-window.c