From 86178327a5d6ce4cf16d5833699337636702f1f9 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Mon, 16 Jun 2014 02:56:48 +0200 Subject: [PATCH] Collation: different results between Java and Mono WTF!!! --- Allgemeines/Collation/Program.cs | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.1.4