From 524f152fe0082d8a30de3ed12560a668a9ddfbb4 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 26 Nov 2024 17:18:03 +0100 Subject: [PATCH] WIP: Normalize file names before using them as keys --- src/libsync/discovery.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 2953d3a83c3..1d43ca86794 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -82,7 +82,8 @@ void ProcessDirectoryJob::process() }; std::map 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(); @@ -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