From: Jean-Marc Lasgouttes Date: Sun, 16 Jul 2023 18:15:48 +0000 (+0200) Subject: Fix display of comment char in "lyxlex" debug channel X-Git-Tag: 2.4-beta4~211 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=430c41cd05310e1609e59443927234fcb4493f1b;p=lyx.git Fix display of comment char in "lyxlex" debug channel --- diff --git a/src/Lexer.cpp b/src/Lexer.cpp index ab052f5b77..eabe694a6a 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -300,7 +300,7 @@ bool Lexer::Pimpl::next(bool esc /* = false */) string dummy; getline(is, dummy); - LYXERR(Debug::LYXLEX, "Comment read: `" << c << dummy << '\''); + LYXERR(Debug::LYXLEX, "Comment read: `" << string(1, c) << dummy << '\''); #else // unfortunately ignore is buggy (Lgb) is.ignore(100, '\n');