From: gu.martinm@gmail.com Date: Mon, 16 Jun 2014 00:56:48 +0000 (+0200) Subject: Collation: different results between Java and Mono WTF!!! X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=86178327a5d6ce4cf16d5833699337636702f1f9;p=CSharpForFun%2F.git Collation: different results between Java and Mono WTF!!! --- diff --git a/Allgemeines/Collation/Program.cs b/Allgemeines/Collation/Program.cs index f96f2e9..0a1c720 100644 --- a/Allgemeines/Collation/Program.cs +++ b/Allgemeines/Collation/Program.cs @@ -62,6 +62,7 @@ namespace Collation printValues (words); // It is the same word in German, as expected. + // I DO NOT GET THE SAME RESULTS FOR THIS COMPARISON USING JAVA!!!! O.o WTF!!! :( string[] strasse = {"strasse", "straße" }; Console.WriteLine("strasse "); int result = String.Compare(strasse[0], strasse[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase); @@ -71,6 +72,7 @@ namespace Collation Console.WriteLine("Spanish result: {0}", result); // Shouldn't it be the same word in German? + // IN THIS CASE I GET THE SAME RESULTS USING JAVA :) string[] koennen = {"können", "koennen" }; Console.WriteLine("koennen "); result = String.Compare(koennen[0], koennen[1], CultureInfo.CreateSpecificCulture("de-DE"), CompareOptions.IgnoreCase);