From 19c935ca37cfedd9ee5471e23dd338d4b8f9a10c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 14 Jan 2010 13:29:13 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathChar.cpp | 2 +- src/mathed/MathStream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2