mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix tests that rely on UTF-8 literals
and the lowercase function
This commit is contained in:
parent
08284e420d
commit
d307d01b18
4 changed files with 40 additions and 20 deletions
|
@ -701,8 +701,8 @@ bool PathStartsWith(const std::string &path, const std::string &prefix)
|
|||
char pathchar = path[pathpos+len];
|
||||
char prefixchar = prefix[prefixpos+len];
|
||||
if(FILESYS_CASE_INSENSITIVE){
|
||||
pathchar = tolower(pathchar);
|
||||
prefixchar = tolower(prefixchar);
|
||||
pathchar = my_tolower(pathchar);
|
||||
prefixchar = my_tolower(prefixchar);
|
||||
}
|
||||
if(pathchar != prefixchar)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue