]> git.lyx.org Git - features.git/commit
Ugly fix for bug #9102
authorGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 19:50:34 +0000 (21:50 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 19 May 2014 19:50:34 +0000 (21:50 +0200)
commitc9fdf376789c787c1a1cbce19b19d1b86b8a653a
tree55804ff3ae0ec4d0b7279a292288f763eae95570
parent1379c381c30c08500ff321d1e6a46323b667c98f
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
status.21x