[LyX/master] Fix bug #12852.

Richard Kimberly Heck rikiheck at lyx.org
Wed Aug 16 20:38:29 UTC 2023


commit d312b32ec8924baba2ad0d601bb6f0d5ebfb6c26
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Wed Aug 16 17:51:47 2023 -0400

    Fix bug #12852.
---
 src/Lexer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Lexer.cpp b/src/Lexer.cpp
index eabe694..b964eab 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;


More information about the lyx-cvs mailing list