From: Enrico Forestieri Date: Thu, 14 Jan 2010 13:29:13 +0000 (+0000) Subject: Fix XHTML output on systems where char_type is not typedef'd to wchar_t. X-Git-Tag: 2.0.0~4371 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=19c935ca37cfedd9ee5471e23dd338d4b8f9a10c;p=features.git Fix XHTML output on systems where char_type is not typedef'd to wchar_t. See docstream.h for the explanation. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33027 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathChar.cpp b/src/mathed/InsetMathChar.cpp index e1d64ec866..4d5fc21120 100644 --- a/src/mathed/InsetMathChar.cpp +++ b/src/mathed/InsetMathChar.cpp @@ -182,7 +182,7 @@ void InsetMathChar::mathmlize(MathStream & ms) const if (ms.inText()) { if (entity.empty()) - ms << char_type(char_); + ms.os().put(char_); else ms << from_ascii(entity); return; diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp index c9f7ef54a5..793da37ec5 100644 --- a/src/mathed/MathStream.cpp +++ b/src/mathed/MathStream.cpp @@ -306,7 +306,7 @@ MathStream & operator<<(MathStream & ms, char c) MathStream & operator<<(MathStream & ms, char_type c) { - ms.os() << c; + ms.os().put(c); return ms; }