]> git.lyx.org Git - features.git/commit
Fix bug #9146.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 5 Jun 2014 15:33:25 +0000 (17:33 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 5 Jun 2014 15:33:25 +0000 (17:33 +0200)
commit7d31194085d8665fd10cc2e8fe4a6330b3cd338f
treefaaf32cd58d74963c84a2b44101bbd1b0459dcfc
parentac23aed50e4fffe99eea208de36459c955516501
Fix bug #9146.

If LyX does not know about a given file format, it may easily
happen that the format is recognized as "latex" and this causes
bug #9146. This patch limits the check for a latex format to
non-binary files. The strategy for deciding that a file has
binary content is the same as that adopted by the "less" program.
src/Format.cpp
src/support/lstrings.cpp
src/support/lstrings.h