[Mono-bugs] [Bug 713640] New: vb like operator fails to match when a '-' is used in the front of the pattern

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 23 03:26:36 EDT 2011



           Summary: vb like operator fails to match when a '-' is used in
                    the front of the pattern
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: i386
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: VB Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: borgdylan at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101

I tried to match the string "-1d" to the pattern "-#*" using the
LikeOperator.LikeString method found in Microsoft.VisualBasic.dll and the match
failed. Other pattern matches that don't include the '-' work perfectly fine.
When I try the quoted match on the Microsoft version of the library the match
happens and the behavior is as expected. So there must be a bug in the Mono
version of the library.

Reproducible: Always

Steps to Reproduce:
Use Microsoft.VisualBasic.CompilerServices.llikeOperator.LikeString with the
following arguments:
1. "-1d"
2. "-#*"
3. OptionCompare.Binary

and check if the output is correct (should be True not False).
Actual Results:  
I got False as a result.

Expected Results:  
The result as returned by the Microsoft library is True which is the correct

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