Open kojo12228 opened 1 year ago
Same thing happens to me with Powershell as the default language. It isn't specific to F#.
Changing my scripts to:
[float]::Parse($Matches[2], 383, (Get-Culture -Name en-US).NumberFormat)
Stops the errors, but the Notebook's output reverts back to Culture 9.
(That's not a $ for the currency symbol)
Describe the bug
F# notebook appears to set the global culture to "en", rather than my local "en-GB". This is causing parsing failures only in my F# notebook that I don't see if I run the code elsewhere. If I set the culture specifically to "en-GB", parsing works again.
In the screenshot at the bottom of the issue, I've showed the failed parse on the current culture, the successful parse on "en-GB" and outputted the current culture. No where else in my code have I attempted to set the global culture.
For completeness, the culture according to FSI:
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):Screenshots