Skip to content

Commit 9014966

Browse files
committed
fix metadata table export with system locale on macOS
1 parent a3fefe5 commit 9014966

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

QtPMbrowser/pmbrowserwindow.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2020 - 2024 Christian R. Halaszovich
2+
Copyright 2020 - 2025 Christian R. Halaszovich
33
44
This file is part of PMbrowser.
55
@@ -803,7 +803,8 @@ void PMbrowserWindow::on_actionExport_Metadata_as_Table_triggered()
803803
try {
804804
hkLib::locale_manager lm;
805805
if (dlg.useSystemLocale()) {
806-
lm.setLocale(""); // set default locale
806+
// for macOS, we need to jump to some hoops
807+
lm.setLocale(QLocale::system().name().toUtf8());
807808
}
808809
else {
809810
lm.setLocale("C");

0 commit comments

Comments
 (0)