mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #12852.
This commit is contained in:
parent
124eda3a0d
commit
d312b32ec8
@ -233,7 +233,7 @@ bool Lexer::Pimpl::setFile(FileName const & filename)
|
|||||||
{
|
{
|
||||||
if (gz_.is_open() || istream::off_type(is.tellg()) > -1)
|
if (gz_.is_open() || istream::off_type(is.tellg()) > -1)
|
||||||
LYXERR0("Error in LyXLex::setFile: file or stream already set.");
|
LYXERR0("Error in LyXLex::setFile: file or stream already set.");
|
||||||
gz_.open(filename.toFilesystemEncoding().c_str(), ios::in);
|
gz_.open(filename.toSafeFilesystemEncoding().c_str(), ios::in);
|
||||||
is.rdbuf(&gz_);
|
is.rdbuf(&gz_);
|
||||||
name = filename.absFileName();
|
name = filename.absFileName();
|
||||||
lineno = 0;
|
lineno = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user