[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #7014] String.Compare() returns the wrong values
From: |
Klaus Treichel |
Subject: |
[Pnet-developers] [bugs #7014] String.Compare() returns the wrong values when comparing n and N |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #7014] Latest Modifications:
Changes by:
Klaus Treichel <address@hidden>
'Date:
Tue 12/14/2004 at 07:36 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Status | Open | Closed
/**************************************************************************/
[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/2003 at 17:00
Category: None
Severity: 5 - Average
Item Group: None
Resolution: Fixed
Privacy: Public
Assigned to: None
Status: Closed
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)
Follow-up Comments
------------------
-------------------------------------------------------
Date: Mon 11/22/2004 at 14:22 By: Klaus Treichel <ktreichel>
fixed in cvs 11/22/2004
-------------------------------------------------------
Date: Sun 11/21/2004 at 14:26 By: Klaus Treichel <ktreichel>
Added a patch to fix this Bug (and the same one in String.Compare(Sring,
String)).
File Attachments
-------------------
-------------------------------------------------------
Date: Sun 11/21/2004 at 14:26 Name: kt-041121.patch Size: 8.22KB By:
ktreichel
Throw the previous one in the bin. This one is more complete (Missed
_IL_String_Compare).
http://savannah.gnu.org/bugs/download.php?item_id=7014&item_file_id=1900
-------------------------------------------------------
Date: Sun 11/21/2004 at 10:15 Name: kt-041121.patch Size: 7.28KB By:
ktreichel
patch that fixes this bug
http://savannah.gnu.org/bugs/download.php?item_id=7014&item_file_id=1899
-------------------------------------------------------
Date: Mon 12/29/2003 at 17:00 Name: compare.cs Size: 458B By: scandium
String.Compare() test case
http://savannah.gnu.org/bugs/download.php?item_id=7014&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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bugs #7014] String.Compare() returns the wrong values when comparing n and N,
Klaus Treichel <=