COMMON: Decode filenames from Punycode upon returning
This commit is contained in:
parent
0b1c95aadf
commit
f3145d0fb6
1 changed files with 2 additions and 4 deletions
|
@ -94,7 +94,8 @@ String FSNode::getDisplayName() const {
|
|||
|
||||
String FSNode::getName() const {
|
||||
assert(_realNode);
|
||||
return _realNode->getName();
|
||||
// We transparently decode any punycode-named files
|
||||
return punycode_decodefilename(_realNode->getName());
|
||||
}
|
||||
|
||||
FSNode FSNode::getParent() const {
|
||||
|
@ -291,9 +292,6 @@ void FSDirectory::cacheDirectoryRecursive(FSNode node, int depth, const String&
|
|||
String lowercaseName = name;
|
||||
lowercaseName.toLowercase();
|
||||
|
||||
// We transparently decode any punycode-named files
|
||||
lowercaseName = punycode_decodefilename(lowercaseName);
|
||||
|
||||
// since the hashmap is case insensitive, we need to check for clashes when caching
|
||||
if (it->isDirectory()) {
|
||||
if (!_flat && _subDirCache.contains(lowercaseName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue