Skip to content

Commit

Permalink
fix: Forces InvariantCulture on server start for DefaultThreadCurrent…
Browse files Browse the repository at this point in the history
…Culture (#1988)

Co-authored-by: Stefano Merotta <97297186+stefanomerotta@users.noreply.github.com>
  • Loading branch information
kamronbatman and stefanomerotta authored Nov 2, 2024
1 parent dabaa1e commit b475e17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Projects/Server/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit b475e17

Please sign in to comment.