mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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
This commit is contained in:
parent
75f6ab9e00
commit
d4041ea53b
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user