From b475e17c9287b6d27a08648aa08c7685c766cc66 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:21:10 -0700 Subject: [PATCH] fix: Forces InvariantCulture on server start for DefaultThreadCurrentCulture (#1988) Co-authored-by: Stefano Merotta <97297186+stefanomerotta@users.noreply.github.com> --- Projects/Server/Main.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projects/Server/Main.cs b/Projects/Server/Main.cs index 13577440d..535327cbe 100644 --- a/Projects/Server/Main.cs +++ b/Projects/Server/Main.cs @@ -16,6 +16,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; +using System.Globalization; using System.IO; using System.Linq; using System.Reflection; @@ -350,6 +351,8 @@ private static void HandleClosed() public static void Setup(Assembly applicationAssembly, Process process) { + CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; + Process = process; ApplicationAssembly = applicationAssembly; Assembly = Assembly.GetAssembly(typeof(Core));