diff options
Diffstat (limited to 'xsde/cxx/parser/validator.cxx')
-rw-r--r-- | xsde/cxx/parser/validator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xsde/cxx/parser/validator.cxx b/xsde/cxx/parser/validator.cxx index 96170de..33fe2e2 100644 --- a/xsde/cxx/parser/validator.cxx +++ b/xsde/cxx/parser/validator.cxx @@ -601,6 +601,16 @@ namespace CXX // // + NarrowString enc (options.value<CLI::char_encoding> ()); + + if (enc != "utf8" && enc != "iso8859-1") + { + wcerr << "error: unknown encoding '" << enc.c_str () << "'" << endl; + return false; + } + + // + // if (options.value<CLI::generate_noop_impl> () && options.value<CLI::generate_print_impl> ()) { |