]> git.lyx.org Git - features.git/commitdiff
Fix encoding of bibtex keys and files read from the latex aux file
authorEnrico Forestieri <forenr@lyx.org>
Fri, 19 Jan 2007 00:55:17 +0000 (00:55 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 19 Jan 2007 00:55:17 +0000 (00:55 +0000)
* 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

index 7ec8adc0a18d4a2fa01cb12b1f3fbc290951ae29..b8caf83b607aa2bf65056589af6a3ad41688edc2 100644 (file)
@@ -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()) {