[Mono-bugs] [Bug 494940] String.Contains returns always true on non empty strings when looking for single chars string of 0xFFFC .NET Difference

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 29 18:44:09 EST 2010



Carlos Alberto Cortez <calberto.cortez at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |calberto.cortez at gmail.com

--- Comment #1 from Carlos Alberto Cortez <calberto.cortez at gmail.com> 2010-01-29 23:44:08 UTC ---
For some reason I can't see your attachment, but the next case I'm getting
'false', just like expected:

using System;

public class Tester
        static void Main ()
                string s = "hello";
                char c = (char)0xFFFC;
                Console.WriteLine (s.Contains (new String (c, 1)));

This was with last mono 2.4/2.6/trunk, so it seems it was probably fixed
upstream. Is there a chance you could re-test it?

Configure bugmail: http://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