[Mono-bugs] [Bug 687444] String.Compare incompatible with .net on strings ending with '\0'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 14 05:31:18 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=687444

https://bugzilla.novell.com/show_bug.cgi?id=687444#c1


Atsushi Enomoto <aenomoto at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
           Severity|Major                       |Normal

--- Comment #1 from Atsushi Enomoto <aenomoto at novell.com> 2011-04-14 09:31:17 UTC ---
It is a contradiction to IndexOf() behavior in Windows. \0 is a significant
character. "MONO".IndexOf ("\0") returns -1, which indicates that "\0" is not
equivalent to "". Compare() must treat "\0" the same, but .NET failed.

On bug #319530 we fixed the issue to *do* take \0 into consideration in string
collation.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list