]> git.lyx.org Git - lyx.git/commit
Ugly fix for bug #9102
authorGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 19:40:11 +0000 (21:40 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 19:40:11 +0000 (21:40 +0200)
commit35ec98bcb2f478608926143617260745e4c0dc39
tree3d63f4b0b6a8819d83e03cd6d867b18d16c4628d
parentcda00d8329a98f912036436b3e0dcfef7cdb24e3
Ugly fix for bug #9102

The real problem is the encoding of latex_language: It is hardcoded to latin1,
but InsetListig uses the currently active encoding. Therefore, we cannot tell
whether any given character wil be encodable or not, and we should not prevent
non-ACII characters.
In the future, we need to make the encoding of latex_language dynamic, so that
it always represents the currently active encoding. Then, we could do the
correct check both for listings and ERT. For now, I simply disabled the
encoding check for listings, which also means that bug 9012 might occur in
other cases for listings, but this is less important than bug 9102.
src/Text.cpp