From: Richard Kimberly Heck Date: Wed, 16 Aug 2023 21:51:47 +0000 (-0400) Subject: Fix bug #12852. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d312b32ec8924baba2ad0d601bb6f0d5ebfb6c26;p=features.git Fix bug #12852. --- diff --git a/src/Lexer.cpp b/src/Lexer.cpp index eabe694a6a..b964eab2c4 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -233,7 +233,7 @@ bool Lexer::Pimpl::setFile(FileName const & filename) { if (gz_.is_open() || istream::off_type(is.tellg()) > -1) 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_); name = filename.absFileName(); lineno = 0;