]> git.lyx.org Git - features.git/commit
Fix encoding for copying LaTeX from clipboard
authorGeorg Baum <baum@lyx.org>
Mon, 11 Nov 2013 20:52:14 +0000 (21:52 +0100)
committerGeorg Baum <baum@lyx.org>
Mon, 11 Nov 2013 20:52:14 +0000 (21:52 +0100)
commit14a5d07df69bb493d8ec21947f177e3e62e1ffb1
treef88a05abafa79a1c8a004ef6241d0301bd09922f
parent73ab0fb665a9225b46dcd6cfd4e3f0ff292023b0
Fix encoding for copying LaTeX from clipboard

If we call tex2lyx on a temporary file created from the clipboard, the
file is always in utf8 encoding, without any temporary changes, even if it
contains encoding changing LaTeX commands. Therefore, we must tell tex2lyx
to use a fixed utf8 encoding for the whole file, and this is done using the
new latexclipboard format. Previously, tex2lyx thought the encoding was
latin1.
As a side effect, the -e option is now also documented in the man page.
lib/configure.py
src/CutAndPaste.cpp
src/tex2lyx/Parser.cpp
src/tex2lyx/Parser.h
src/tex2lyx/tex2lyx.1in
src/tex2lyx/tex2lyx.cpp