mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Restore LC_NUMERIC to C locale on Mac/Linux
Recommended by QCoreApplication doc for Unix. Fixes CUBE LUT load, and FFmpeg output args for foreign locales.
This commit is contained in:
parent
34b55180ab
commit
b5f85bc788
@ -1156,6 +1156,12 @@ bool OBSApp::InitTheme()
|
||||
OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store)
|
||||
: QApplication(argc, argv), profilerNameStore(store)
|
||||
{
|
||||
/* fix float handling */
|
||||
#if defined(Q_OS_UNIX)
|
||||
if (!setlocale(LC_NUMERIC, "C"))
|
||||
blog(LOG_WARNING, "Failed to set LC_NUMERIC to C locale");
|
||||
#endif
|
||||
|
||||
sleepInhibitor = os_inhibit_sleep_create("OBS Video/audio");
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
Loading…
Reference in New Issue
Block a user