From 8f681e784e83abe7a4cd37654a6678f01ec2c62c Mon Sep 17 00:00:00 2001 From: Stefano Merotta <97297186+stefanomerotta@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:45:56 +0100 Subject: [PATCH] Forced InvariantCulture on server start for DefaultThreadCurrentCulture --- 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));