mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix tests that rely on UTF-8 literals
and the lowercase function
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user