mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Set qt locale to 'C'
Former-commit-id: d2c0b2ea61c8444169a8d8635adf7af5d3b5c67b
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
// Qt includes
|
||||
#include <QCoreApplication>
|
||||
#include <QLocale>
|
||||
|
||||
// getoptPlusPLus includes
|
||||
#include <getoptPlusPlus/getoptpp.h>
|
||||
@@ -27,10 +28,12 @@ int count(std::initializer_list<bool> values)
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
setlocale(LC_ALL, "C");
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
// force the locale
|
||||
setlocale(LC_ALL, "C");
|
||||
QLocale::setDefault(QLocale::c());
|
||||
|
||||
try
|
||||
{
|
||||
// some default settings
|
||||
|
Reference in New Issue
Block a user