From d4041ea53b51473a1cf5b58980decd5fb7913add Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 19 Jan 2007 00:55:17 +0000 Subject: [PATCH] Fix encoding of bibtex keys and files read from the latex aux file * src/LaTeX.C (LaTeX::scanAuxFile): Convert to utf8 citation keys and filenames. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16758 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LaTeX.C b/src/LaTeX.C index 7ec8adc0a1..b8caf83b60 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -481,6 +481,9 @@ void LaTeX::scanAuxFile(FileName const & file, Aux_Info & aux_info) while (getline(ifs, token)) { token = rtrim(token, "\r"); smatch sub; + // FIXME UNICODE: We assume that citation keys and filenames + // in the aux file are in the file system encoding. + token = to_utf8(from_filesystem8bit(token)); if (regex_match(token, sub, reg1)) { string data = sub.str(1); while (!data.empty()) { -- 2.39.5