aports/testing/musikcube/locale.patch
psykose 20fab58d70 testing/musikcube: new aport
https://github.com/clangen/musikcube
a cross-platform, terminal-based music player, audio engine, metadata indexer, and server
2023-05-05 06:11:18 +02:00

16 lines
657 B
Diff

the output of setlocale is quite opaque and segfaults in portable libstdc++ locale() implementation later, so just use current
--
diff --git a/src/musikcube/app/model/DirectoryAdapter.cpp b/src/musikcube/app/model/DirectoryAdapter.cpp
index 6108cde..2f4d1bc 100755
--- a/src/musikcube/app/model/DirectoryAdapter.cpp
+++ b/src/musikcube/app/model/DirectoryAdapter.cpp
@@ -133,7 +133,7 @@ static void buildDirectoryList(
std::sort(
target.begin(),
target.end(),
- std::locale(setlocale(LC_ALL, nullptr)));
+ std::locale(""));
}
catch (...) {
std::sort(target.begin(), target.end());