From fd5e171bad3212a1d24a3624b84b2b6cb731415d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 3 Jul 2008 14:32:43 +0000 Subject: [PATCH] * src/Paragraph.cpp (simpleTeXSpecialChars): - do not assume that typewriter can encode any character (bug 4727). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@25434 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 10 +++++++++- status.15x | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index cee1954c72..618dc1fc28 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -986,7 +986,14 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf, break; default: - +#ifdef WITH_WARNINGS +#warning Can someone explain this silly method? +// JSpitzm 2008/07/03 +// This looks like complete nonsense to me. Cf. the comments +// below. Since this triggers iconv exceptions (see bug 4727), +// I have commented this out for the time being. +#endif +#if 0 // I assume this is hack treating typewriter as verbatim // FIXME UNICODE: This can fail if c cannot be encoded // in the current encoding. @@ -996,6 +1003,7 @@ void Paragraph::Pimpl::simpleTeXSpecialChars(Buffer const & buf, } break; } +#endif // LyX, LaTeX etc. diff --git a/status.15x b/status.15x index 00ef3a67d6..2adbd3cc62 100644 --- a/status.15x +++ b/status.15x @@ -90,6 +90,8 @@ What's new landscape orientation, such that viewers can properly display them (bug 2721). +- Fix encoding errors when typewriter font is used (bug 4727). + * USER INTERFACE