Skip to content

Commit

Permalink
Forced InvariantCulture on server start for DefaultThreadCurrentCulture
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanomerotta committed Nov 1, 2024
1 parent dabaa1e commit 8f681e7
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 8f681e7

Please sign in to comment.