diff options
Diffstat (limited to 'libxsde/xsde/cxx/parser/expat/xml-error.cxx')
-rw-r--r-- | libxsde/xsde/cxx/parser/expat/xml-error.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libxsde/xsde/cxx/parser/expat/xml-error.cxx b/libxsde/xsde/cxx/parser/expat/xml-error.cxx index cb7b904..b5f15a4 100644 --- a/libxsde/xsde/cxx/parser/expat/xml-error.cxx +++ b/libxsde/xsde/cxx/parser/expat/xml-error.cxx @@ -13,13 +13,19 @@ namespace xsde { namespace expat { + static const char* const text_[] = + { + "character unrepresentable in application encoding" + }; + const char* xml_error_text (xml_error e) { - return XML_ErrorString (e); + return e < 0x10000 + ? XML_ErrorString (static_cast<XML_Error> (e)) + : text_[e & 0xFFFF]; } } } } } - |