mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Set qt locale to 'C'
Former-commit-id: d2c0b2ea61c8444169a8d8635adf7af5d3b5c67b
This commit is contained in:
parent
6864ef6e43
commit
ba73fbd470
@ -1 +1 @@
|
|||||||
cc218832df7b1806355dc00559924630e3bc54be
|
fb67681c8c942ffe2236a4ea3a41d4102c3fbb2e
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
// Qt includes
|
// Qt includes
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QLocale>
|
||||||
|
|
||||||
// getoptPlusPLus includes
|
// getoptPlusPLus includes
|
||||||
#include <getoptPlusPlus/getoptpp.h>
|
#include <getoptPlusPlus/getoptpp.h>
|
||||||
@ -27,10 +28,12 @@ int count(std::initializer_list<bool> values)
|
|||||||
|
|
||||||
int main(int argc, char * argv[])
|
int main(int argc, char * argv[])
|
||||||
{
|
{
|
||||||
setlocale(LC_ALL, "C");
|
|
||||||
|
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
|
|
||||||
|
// force the locale
|
||||||
|
setlocale(LC_ALL, "C");
|
||||||
|
QLocale::setDefault(QLocale::c());
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// some default settings
|
// some default settings
|
||||||
|
@ -30,6 +30,7 @@ void saveScreenshot(void *, const Image<ColorRgb> & image)
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
// force the locale
|
||||||
setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
// QT includes
|
// QT includes
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QResource>
|
#include <QResource>
|
||||||
|
#include <QLocale>
|
||||||
|
|
||||||
// config includes
|
// config includes
|
||||||
#include "HyperionConfig.h"
|
#include "HyperionConfig.h"
|
||||||
@ -71,7 +72,6 @@ Json::Value loadConfig(const std::string & configFile)
|
|||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
std::cout << "Application build time: " << __DATE__ << " " << __TIME__ << std::endl;
|
std::cout << "Application build time: " << __DATE__ << " " << __TIME__ << std::endl;
|
||||||
std::cout << "Locale = " << setlocale(LC_ALL, "C") << std::endl;
|
|
||||||
|
|
||||||
// Initialising QCoreApplication
|
// Initialising QCoreApplication
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
@ -80,6 +80,10 @@ int main(int argc, char** argv)
|
|||||||
signal(SIGINT, signal_handler);
|
signal(SIGINT, signal_handler);
|
||||||
signal(SIGTERM, signal_handler);
|
signal(SIGTERM, signal_handler);
|
||||||
|
|
||||||
|
// force the locale
|
||||||
|
setlocale(LC_ALL, "C");
|
||||||
|
QLocale::setDefault(QLocale::c());
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
std::cout << "Missing required configuration file. Usage:" << std::endl;
|
std::cout << "Missing required configuration file. Usage:" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user