--- parser3/src/classes/xdoc.C 2016/04/06 16:08:19 1.185 +++ parser3/src/classes/xdoc.C 2016/09/21 15:35:10 1.188 @@ -28,7 +28,7 @@ #include "xnode.h" #include "pa_charsets.h" -volatile const char * IDENT_XDOC_C="$Id: xdoc.C,v 1.185 2016/04/06 16:08:19 moko Exp $"; +volatile const char * IDENT_XDOC_C="$Id: xdoc.C,v 1.188 2016/09/21 15:35:10 moko Exp $"; // defines @@ -47,6 +47,7 @@ public: // global variable +DECLARE_CLASS_VAR(xnode, new MXnode); // must be here as Xdoc is inherited from Xnode and should be inited before DECLARE_CLASS_VAR(xdoc, new MXdoc); // helper classes @@ -476,7 +477,7 @@ String::C xdoc2buf(Request& r, VXdoc& vd render=&r.charsets.source(); header=&r.charsets.client(); } else { - header=render=&charsets.get(oo.encoding->change_case(r.charsets.source(), String::CC_UPPER)); + header=render=&pa_charsets.get(*oo.encoding); } const char* render_encoding=render->NAME_CSTR(); const char* header_encoding=header->NAME_CSTR(); @@ -794,6 +795,7 @@ MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME) // global variable +DECLARE_CLASS_VAR(xnode, 0); // fictive DECLARE_CLASS_VAR(xdoc, 0); // fictive #endif