Skip to content

Commit

Permalink
Ensure that ICU is loaded in tests before checking its version
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Dec 24, 2023
1 parent 955604c commit 9f4d6fc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ public static bool IsSubstAvailable

private static Version GetICUVersion()
{
try
{
// Ensure that ICU has been loaded
GC.KeepAlive(System.Globalization.CultureInfo.InstalledUICulture);
}
catch { }

int version = 0;
try
{
Expand Down

0 comments on commit 9f4d6fc

Please sign in to comment.