Closed waltdestler closed 3 years ago
Hmm, "I".IndexOf(",")
is returning 0
with .NET 5. Must make some sort of linguistic sense? Probably related to the change in behavior with string comparison: https://docs.microsoft.com/en-us/dotnet/standard/base-types/string-comparison-net-5-plus
Looks like this particular failure will need to be fixed in the DLR.
I've run into a strange and highly-specific yet trivially-reproducible problem that is preventing IronPython from working: If I try to call
Python.CreateEngine()
with the current thread's culture set to Thai (th-TH; either inherited from OS settings or set manually via C# code), then it throws the following exception:Here is a complete program that reproduces the issue:
I am able to reproduce this when targeting .NET 5.0 and the latest .NET 6 preview, but NOT when targeting .NET Core 3.1. (I have not tried earlier versions.) I am able to reproduce this with every version of IronPython that I've tried, including 3.4.0-alpha, 2.7.11, and a handful of others. I am not aware of any cultures other than Thai that cause this issue, though I haven't tested exhaustively and would be surprised if it was the only one to cause this issue.
Any ideas what's going on? I suspect this could be a .NET bug introduced in 5.0 and not an IronPython bug, but I haven't had this issue with any other libraries, so I'm not sure.