[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:50:08 EDT 2011


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

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


--- Comment #2 from Nicklas Overgaard <nicklas at isharp.dk> 2011-04-14 09:50:08 UTC ---
(In reply to comment #1)
> 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.
Oh the joy of bugs.

I have a question though. Isn't mono supposed to be binary compatible, or at
least runtime-compatible with ms.net? This issue actually keeps me from using a
proprietary .net library for PDF creation, where they are doing such
comparison.

You can argue that they should fix their Compare() call, but if it works on
windows, they have no incentive to fix "the issue".

-- 
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