From 8c30cef65ef2124d4f51d5d5d4c2b9f56ed4c008 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Fri, 3 Mar 2023 13:10:32 +0100 Subject: [PATCH] UDBScript: fixed a problem where floating point default script option values would be converted to the system's locale on hot reloading. Fixes #858 --- Source/Core/General/General.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/General/General.cs b/Source/Core/General/General.cs index e1ddcb5c6..5d49ea30f 100755 --- a/Source/Core/General/General.cs +++ b/Source/Core/General/General.cs @@ -612,7 +612,12 @@ namespace CodeImp.DoomBuilder //mxd. Set CultureInfo Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; - + + // biwa. If the default culture for threads is not set it'll screw with the culture + // in the FileSystemWatcher thread, which can result in incorrect string outputs + // See: https://github.com/jewalky/UltimateDoomBuilder/issues/858 + CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; + // Set current thread name Thread.CurrentThread.Name = "Main Application"; -- GitLab