From 8b90b7550173351543bd2335132a89910c8d4a9d Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 28 Jan 2007 19:17:59 +0000 Subject: [PATCH] * src/text.C (LyXText::currentState): Unicode debugging aid: Display UCS4 code point in devel builds git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16910 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/text.C b/src/text.C index 6b5d64e363..a44447850a 100644 --- a/src/text.C +++ b/src/text.C @@ -1711,6 +1711,9 @@ docstring LyXText::currentState(LCursor & cur) os << _(", Paragraph: ") << cur.pit(); os << _(", Id: ") << par.id(); os << _(", Position: ") << cur.pos(); + // Force output of code point, not character + size_t const c = par.getChar(cur.pos()); + os << _(", Char: 0x") << std::hex << c; os << _(", Boundary: ") << cur.boundary(); // Row & row = cur.textRow(); // os << bformat(_(", Row b:%1$d e:%2$d"), row.pos(), row.endpos()); -- 2.39.2