Browse Source

Fix WSL InvariantCulture test.

BDisp 1 year ago
parent
commit
88954b9ab7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SelfContained/Program.cs

+ 1 - 1
SelfContained/Program.cs

@@ -16,7 +16,7 @@ public static class Program
 
         #region The code in this region is not intended for use in a self-contained single-file. It's just here to make sure there is no functionality break with localization in Terminal.Gui using single-file
 
-        if (Equals (Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture))
+        if (Equals (Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture) && Application.SupportedCultures.Count == 0)
         {
             Debug.Assert (Application.SupportedCultures.Count == 0);
         }