dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #7014] String.Compare() returns the wrong values


From: Rainer Groesslinger
Subject: [Pnet-developers] [bugs #7014] String.Compare() returns the wrong values when comparing n and N
Date: Mon, 29 Dec 2003 12:00:40 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031118 Epiphany/1.0.6

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #7014] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=7014>
Project: DotGNU Portable.NET
Submitted by: Rainer Groesslinger
On: Mon 12/29/03 at 17:00

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  String.Compare() returns the wrong values when comparing n and N

Original Submission:  When running the attached test case pnet returns
-1
0
0
-1
but MS .NET returns (as expected)
1
0
0
1

It seems like if pnet compares the same characters but one is capitalized and 
one isn't, it returns the wrong value.
e.g. if I am not mistaken in .NET it's supposed to be
c > a
C > a
N > n

pnet seems to interpret the last one the other way around (n > N)





File Attachments
-------------------

-------------------------------------------------------
Date: Mon 12/29/03 at 17:00  Name: compare.cs  Size: 458KB   By: scandium
String.Compare() test case
http://savannah.gnu.org/bugs/download.php?item_id=7014&amp;item_file_id=914






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=7014>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]