From 54ea8eb5c79d4a6bb88159cd6a67ce0dd4e17235 Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Mon, 18 Jan 2021 19:21:02 +0200 Subject: [PATCH] Fix string corruption with Qt on linux-systems --- apps/opencs/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/opencs/main.cpp b/apps/opencs/main.cpp index 5287c8b19..c7d57a256 100644 --- a/apps/opencs/main.cpp +++ b/apps/opencs/main.cpp @@ -63,6 +63,9 @@ int runApplication(int argc, char *argv[]) application.setWindowIcon (QIcon (":./openmw-cs.png")); CS::Editor editor(argc, argv); +#ifdef __linux__ + setlocale(LC_NUMERIC,"C"); +#endif if(!editor.makeIPCServer()) {