Commit bbbbb509 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Missing fix for FreeBSD in last commit (fix broken localization)

parent 5aa1aea6
...@@ -21,7 +21,7 @@ auto LocaleHandling::setLocale(const QString &lcName) -> QString ...@@ -21,7 +21,7 @@ auto LocaleHandling::setLocale(const QString &lcName) -> QString
localesToTest << lcName << lcName + ".utf-8" << lcName + ".UTF-8" << lcName + ".utf8" << lcName + ".UTF8"; localesToTest << lcName << lcName + ".utf-8" << lcName + ".UTF-8" << lcName + ".utf8" << lcName + ".UTF8";
for (const auto &locale : localesToTest) { for (const auto &locale : localesToTest) {
#ifdef Q_OS_FREEBSD #ifdef Q_OS_FREEBSD
auto *result = setlocale(LC_ALL, locale.toStdString().c_str()); auto *result = setlocale(LC_NUMERIC, locale.toStdString().c_str());
#else #else
auto *result = std::setlocale(LC_NUMERIC, locale.toStdString().c_str()); auto *result = std::setlocale(LC_NUMERIC, locale.toStdString().c_str());
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment