[Mono-bugs] [Bug 513624] New: [Regression] String comparison
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 16 12:42:10 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=513624
Summary: [Regression] String comparison
Classification: Mono
Product: Mono: Class Libraries
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Critical
Priority: P5 - None
Component: CORLIB
AssignedTo: aenomoto at novell.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
1. compile&run
using System;
using System.Globalization;
using System.Threading;
namespace Test
{
public class MyTest
{
static void Main (string[] args)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-us");
CultureInfo ci =
System.Threading.Thread.CurrentThread.CurrentCulture;
Console.WriteLine (ci);
Console.WriteLine (string.Compare ("Zyx", "bcd"));
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
ci = System.Threading.Thread.CurrentThread.CurrentCulture;
Console.WriteLine (ci);
Console.WriteLine (string.Compare ("Zyx", "bcd"));
}
}
}
Actual results:
en-US
-1
en-GB
-1
Mono 2.4, .NET results:
en-US
1
en-GB
1
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list