From 59e939e9077d5249a9b93cec21755986cccd0d06 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Fri, 30 Oct 2020 08:11:17 +0100 Subject: [PATCH] Ensure utf-8 to be used as path encoding --- vst/FileTrie.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vst/FileTrie.cpp b/vst/FileTrie.cpp index 9db72286..014ad626 100644 --- a/vst/FileTrie.cpp +++ b/vst/FileTrie.cpp @@ -27,12 +27,12 @@ fs::path FileTrie::operator[](size_t index) const fs::path FileTrie::pathFromEntry(size_t index) const { const Entry* currentEntry = &entries_[index]; - fs::path path { currentEntry->name }; + fs::path path = fs::u8path(currentEntry->name); size_t currentIndex; while ((currentIndex = currentEntry->parent) != npos) { currentEntry = &entries_[currentIndex]; - path = fs::path { currentEntry->name } / path; + path = fs::u8path(currentEntry->name) / path; } return path;