From: Richard Heck Date: Fri, 24 Sep 2010 16:12:02 +0000 (+0000) Subject: Keeping the comma leads to bug #6914, since we end up with mangled names X-Git-Tag: 2.0.0~2511 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4244a15ca398441d992359b3e9b2bc9419170c60;p=features.git Keeping the comma leads to bug #6914, since we end up with mangled names like: 0_tmp_the,_test_tst.bib and then code like: \bibliography{0_tmp_the,_test_tst} which confuses LaTeX. Easy solution: Mangle the comma. Jurgen, this is in branch, too. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35493 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index e68d1f7190..54c6fc9fd9 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -1109,7 +1109,7 @@ string DocFileName::mangledFileName(string const & dir) const // in the name. static string const keep = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "+,-0123456789;="; + "+-0123456789;="; string::size_type pos = 0; while ((pos = mname.find_first_not_of(keep, pos)) != string::npos) mname[pos++] = '_';