mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Fix bug 3266
* src/support/filetools.C (makeLatexName): Don't set the 8th bit of characters to 0. This is not needed anymore, since we don't use isalpha() anymore, but a whitelist of allowed characters. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17331 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bd02196f4d
commit
b555834103
@ -117,9 +117,6 @@ string const makeLatexName(string const & file)
|
|||||||
string name = onlyFilename(file);
|
string name = onlyFilename(file);
|
||||||
string const path = onlyPath(file);
|
string const path = onlyPath(file);
|
||||||
|
|
||||||
for (string::size_type i = 0; i < name.length(); ++i)
|
|
||||||
name[i] &= 0x7f; // set 8th bit to 0
|
|
||||||
|
|
||||||
// ok so we scan through the string twice, but who cares.
|
// ok so we scan through the string twice, but who cares.
|
||||||
string const keep = "abcdefghijklmnopqrstuvwxyz"
|
string const keep = "abcdefghijklmnopqrstuvwxyz"
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
Loading…
Reference in New Issue
Block a user