fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

CurrentCulture is not preserved between submissions of desktop fsi

Open KevinRansom opened this issue 1 year ago • 0 comments

dotnet fsi appears to, but that may just be an accident.

Repro: Start fsi paste in this script

open System
open System.Globalization

System.Globalization.CultureInfo.CurrentCulture <- System.Globalization.CultureInfo.GetCultureInfo("nl-NL")

System.Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture);;
System.Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture);;

observe that currentculture is different in both submissions. image

dotnet fsi being right image

KevinRansom avatar Aug 16 '22 10:08 KevinRansom