Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Normalize file names before using them as keys #11996

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void ProcessDirectoryJob::process()
};
std::map<QString, Entries> entries;
for (auto &e : _serverNormalQueryEntries) {
entries[e.name].serverEntry = std::move(e);
// XXXX
entries[e.name.normalized(QString::NormalizationForm_C)].serverEntry = std::move(e);
}
_serverNormalQueryEntries.clear();

Expand All @@ -102,7 +103,9 @@ void ProcessDirectoryJob::process()
}

for (auto &e : _localNormalQueryEntries) {
entries[e.name].localEntry = e;
// XXXX

entries[e.name.normalized(QString::NormalizationForm_C)].localEntry = e;
}
if (isVfsWithSuffix()) {
// For vfs-suffix the local data for suffixed files should usually be associated
Expand Down