What do you expect? In Hungarian, "ny" counts as one . It can be written as "ny", "Ny" or "NY". But never no. This works as expected:
var hu = new CultureInfo("hu-HU"); Console.WriteLine(String.Compare("Ny", "NY", true, hu)); Console.WriteLine(String.Compare("ny", "NY", true, hu)); Console.WriteLine(String.Compare("ny", "Ny", true, hu));
In Hungarian they do not have the letter "y", except for foreign words and some names. But when you say "nY" , there is no way that this could be the letter "ny". Therefore, it is possible that .NET treats it as two letters.
Does anyone know Hungarian? It would be interesting to hear their opinion. But I'm sure the string "nY" will never appear in the "natural" Hungarian language.
Jeppe stig nielsen
source share