[Mono-bugs] [Bug 55194][Wis] New - Substring & Path problems
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Mar 2004 01:49:22 -0500 (EST)
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 consulatewizard@yahoo.co.nz.
http://bugzilla.ximian.com/show_bug.cgi?id=55194
--- shadow/55194 2004-03-05 01:49:22.000000000 -0500
+++ shadow/55194.tmp.5429 2004-03-05 01:49:22.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 55194
+Product: Mono: Class Libraries
+Version: unspecified
+OS: unknown
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: consulatewizard@yahoo.co.nz
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Substring & Path problems
+
+Description of Problem: Resulting substring is incorrect in comparison to
+MS .NET Runtime.
+
+
+Steps to reproduce the problem:
+string expr = "folder/*.xml";
+string path = System.IO.Path.GetDirectoryName(expr);
+string pattern = expr;
+if ( expr.Length > path.Length )
+ pattern = expr.Substring(path.Length + 1);
+Console.WriteLine("path = {0}, pattern = {1}", path, pattern);
+
+Actual Results:
+path = folder/, pattern = .xml
+
+Expected Results:
+path = folder, pattern = *.xml
+
+How often does this happen?
+Everytime with mono