Closed
Description
openedon Sep 13, 2022
How to reproduce:
Create a net472 Console project and paste the following code:
using System;
using System.Globalization;
using System.Threading;
public class Program
{
public static void Main()
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("th-th");
Console.WriteLine("#".IndexOf("["));
}
}
Output (as expected): -1
Switch the .csproj to net6 TFM and run again.
Output (not expected): 0
Activity