[Mono-bugs] [Bug 40557][Min] Changed - square brackets and braces cause Directory.cs methods to act incorrectly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 4 Aug 2003 18:04:22 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dwb@umd.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=40557
--- shadow/40557 Mon Mar 31 00:20:32 2003
+++ shadow/40557.tmp.18020 Mon Aug 4 18:04:22 2003
@@ -2,18 +2,18 @@
Product: Mono/Class Libraries
Version: unspecified
OS: other
OS Details: Gentoo 1.4rc3
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Minor
Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: drteeth@monkeyhouse.ca
-QAContact: mono-bugs@ximian.com
+QAContact: dwb@umd.edu
TargetMilestone: ---
URL:
Cc:
Summary: square brackets and braces cause Directory.cs methods to act incorrectly
This is my first bug report ever, for anything, so please let me know if i
@@ -54,6 +54,15 @@
Expected Results:
I would expect it to find 2 files, or throw an exception if it can't find
the folder.
How often does this happen?
everytime.
+
+------- Additional Comments From dwb@umd.edu 2003-08-04 18:04 -------
+It appears that this is because the FindFirstFile method in
+mono/mono/io-layer/io.c uses the glob(7) function to parse the
+pattern. glob accepts three wild cards *, ?, and brackets (character
+classes). It's unclear what the desired functionality of pattern
+matching should be. If it is to correspond to Win32 pattern matching,
+then all brackets should be escaped. Otherwise, the behavior is
+correct, and it's up to the user to do her own escaping.