diff options
Diffstat (limited to 'xsde/cxx/hybrid/validator.cxx')
-rw-r--r-- | xsde/cxx/hybrid/validator.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xsde/cxx/hybrid/validator.cxx b/xsde/cxx/hybrid/validator.cxx index f95bd96..716f072 100644 --- a/xsde/cxx/hybrid/validator.cxx +++ b/xsde/cxx/hybrid/validator.cxx @@ -489,6 +489,18 @@ namespace CXX Boolean valid (true); ValidationContext ctx (root, options, disabled_warnings, valid); + // + // + NarrowString enc (options.value<CLI::char_encoding> ()); + + if (enc != "utf8" && enc != "iso8859-1") + { + wcerr << "error: unknown encoding '" << enc.c_str () << "'" << endl; + return false; + } + + // + // Boolean par (options.value<CLI::generate_parser> ()); Boolean ser (options.value<CLI::generate_serializer> ()); Boolean agg (options.value<CLI::generate_aggregate> ()); |