Ref #141
Some localized error strings in prim-types.fs are declared as module values, which causes them to be statically initialized long before they might be used. This means they might be initialized in a different culture than when they are actually used, which is not desirable.
Fix is to refactor these to be evaluated on-demand.
try
Seq.min []
with e ->
printfn "%A" e //use default currentUICulture of process
// change culture now
System.Threading.Thread.CurrentThread.CurrentUICulture <- new CultureInfo("it-IT")
try
Seq.min []
with e ->
printfn "%A" e // e message is wrong, because is not of 'it-IT' culture
Ref #141
Some localized error strings in prim-types.fs are declared as module values, which causes them to be statically initialized long before they might be used. This means they might be initialized in a different culture than when they are actually used, which is not desirable.
Fix is to refactor these to be evaluated on-demand.