]> git.lyx.org Git - features.git/commit
Fix bug #6365: tex2lyx uses wrong encoding in the preamble.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 9 Dec 2009 12:29:48 +0000 (12:29 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 9 Dec 2009 12:29:48 +0000 (12:29 +0000)
commite3b26029ccdf802f99e54e9939c03c49f3714235
treee88e7bbcfc18dfc788a06378d8bd742cf2d8cdb6
parentccfcd71b36c28a14ef6e7c575c1d78ea639e37f3
Fix bug #6365: tex2lyx uses wrong encoding in the preamble.

Everything is ok while reading the file, but when the lyxfile is written, only the first byte of a double-byte character is written to the file. This is because t.character() is sort of defined as cs_[0] in which cs_ is a docstring. This thus seems to fail for multi-byte characters.

Compare with src\tex2lyx\text.cpp line: 1250.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32441 a592a061-630c-0410-9148-cb99ea01b6c8
src/tex2lyx/preamble.cpp