lyx_mirror/src/support
Georg Baum de3e5280f6 Open tex2lyx input files with correct encoding
We open the input file now twice: The first time in latin1 encoding to read
the document encoding from the preamble. This does always work, since
traditional TeX does not allow non-ASCII contents without an encoding changing
command (except for comments, but we do not need them, and using latin1 rather
than utf8 ensures that they do not produce an iconv exception, but are simply
recored with wrong characters), and we do detect the utf8 based TeX engines
XeTeX and LuaTeX as well. The second time we open the file directly with the
document encoding.

This fixes a few tex2lyx tests on OS X, since changing the encoding of an
open file steam does not work with clang on OS X. Files using more than one
encoding are still broken, but all single-encoding files are fixed now.
2016-01-31 12:54:59 +01:00
..
linkback Avoid the use of a static NSAutoreleasePool. 2015-10-09 08:16:24 +02:00
mythes
tests Test negative numbers as well 2015-06-28 11:27:17 +02:00
.gitignore
AppleScript.h
AppleScript.m
AppleScriptProxy.cpp
AppleSpeller.h
AppleSpeller.m
bind.h Use explicit macro to declare that we want to use C++11 2015-05-20 10:19:19 +02:00
CMakeLists.txt Cmake monolithic build: Some corrections. 2015-11-17 21:21:00 +01:00
ConsoleApplication.cpp Start qt event loop for commandline usage 2015-01-11 14:06:17 +01:00
ConsoleApplication.h ConsoleApplication: Fix typos 2015-01-13 21:59:39 +01:00
ConsoleApplicationPrivate.h Start qt event loop for commandline usage 2015-01-11 14:06:17 +01:00
convert.cpp
convert.h Assorted cppcheck fixes 2015-10-20 09:58:46 +02:00
copied_ptr.h
debug.cpp Rename function that was ambiguous from a monolithic perspective. 2015-11-16 08:20:54 +01:00
debug.h Add some missing member variable initializations 2015-09-13 19:47:21 +02:00
docstream.cpp Open tex2lyx input files with correct encoding 2016-01-31 12:54:59 +01:00
docstream.h Open tex2lyx input files with correct encoding 2016-01-31 12:54:59 +01:00
docstring_list.h
docstring.cpp
docstring.h Remove gcc 3 traces 2015-05-10 10:01:33 +02:00
environment.cpp
environment.h
ExceptionMessage.h
FileMonitor.cpp
FileMonitor.h
FileName.cpp Comment only. 2016-01-18 14:29:37 -08:00
FileName.h #7896 add support for symlink creation by the LyX binary itself 2015-06-23 08:41:43 +02:00
FileNameList.h
filetools.cpp Fix bugs #2645 (export BIBINPUTS) and #6634 (Better support for external files in ERT) 2015-11-03 23:28:36 +01:00
filetools.h Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
foreach.h
ForkedCalls.cpp Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
ForkedCalls.h Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
functional.h Use explicit macro to declare that we want to use C++11 2015-05-20 10:19:19 +02:00
gettext.cpp
gettext.h
gzstream.cpp
gzstream.h Add missing intializations 2015-10-10 21:04:28 +02:00
kill.cpp
lassert.cpp
lassert.h
limited_stack.h
lstrings.cpp Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
lstrings.h Consistency of ellipses across the UI 2015-10-05 21:16:16 +01:00
lyxalgo.h Use explicit macro to declare that we want to use C++11 2015-05-20 10:19:19 +02:00
lyxlib.h
lyxtime.cpp
lyxtime.h
Makefile.am Remove support for precompiled headers for autotools 2015-09-25 12:05:40 +02:00
Messages.cpp Restore lyxerr number format to decimal 2015-09-12 19:38:38 +02:00
Messages.h
metahash.h
mutex.cpp
mutex.h
numpunct_lyx_char_type.h Convert remaining C++ files to UTF-8 2015-12-05 19:33:24 +00:00
os_cygwin.cpp Fix bugs #2645 (export BIBINPUTS) and #6634 (Better support for external files in ERT) 2015-11-03 23:28:36 +01:00
os_unix.cpp Fix bugs #2645 (export BIBINPUTS) and #6634 (Better support for external files in ERT) 2015-11-03 23:28:36 +01:00
os_win32.cpp Fix bugs #2645 (export BIBINPUTS) and #6634 (Better support for external files in ERT) 2015-11-03 23:28:36 +01:00
os_win32.h
os.cpp
os.h
Package.cpp use QStandardPaths::GenericDataLocation instead of QStandardPaths::DataLocation to get common user_support_dir path for all LyX binaries (LyX, tex2lyx and lyxclient) 2016-01-24 15:19:54 +01:00
Package.h tex2lyx: Run configure.py if needed (bug #8539) 2014-12-29 23:46:25 +01:00
PathChanger.cpp
PathChanger.h
pmprof.h
ProgressInterface.h
qstring_helpers.cpp
qstring_helpers.h
RandomAccessList.h
regex.h Fix C++11 std::regex incompatibility 2015-11-24 20:31:14 +01:00
shared_ptr.h Support for (std|boost)::make_shared 2015-09-15 15:25:32 +01:00
socktools.cpp
socktools.h
strfwd.h msvc: Proper fix for compilation of TexRow 2015-10-20 21:29:19 +02:00
Systemcall.cpp Qt 5.6 renames signal QProcesss::error() 2016-01-24 12:07:52 -05:00
Systemcall.h Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
SystemcallPrivate.h Fix bug #4812 (Layout in local directory lost on Save As, Copying) 2015-05-13 22:02:13 +02:00
TempFile.cpp Make sure a temporary file is always created in the global temporary dir. 2015-03-13 00:31:08 +01:00
TempFile.h Fix file locking problem on windows (bug 9925) 2016-01-26 21:49:08 +01:00
textutils.h
Timeout.cpp Fix memory leak in TImer class. 2015-02-20 15:39:45 +01:00
Timeout.h Fix memory leak in TImer class. 2015-02-20 15:39:45 +01:00
Translator.h
trivstring.cpp Instantiate trivial_string::c_str() explicitly 2015-05-15 21:01:59 +02:00
trivstring.h Use typedef for std::basic_string in trivstring 2014-12-28 17:06:34 +01:00
types.h Improve source code documentation 2015-03-18 21:33:10 +01:00
unicode.cpp
unicode.h
userinfo.cpp Mark dead code as dead 2015-09-12 18:49:22 +02:00
userinfo.h
weighted_btree.h