fix: Forces InvariantCulture on server start for DefaultThreadCurrentCulture (#1988)

Co-authored-by: Stefano Merotta <97297186+stefanomerotta@users.noreply.github.com>
This commit is contained in:
Kamron Batman 2024-11-01 21:21:10 -07:00 committed by GitHub
parent dabaa1eb5a
commit b475e17c92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 @@ public static class Core
public static void Setup(Assembly applicationAssembly, Process process)
{
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
Process = process;
ApplicationAssembly = applicationAssembly;
Assembly = Assembly.GetAssembly(typeof(Core));