[Mono-bugs] [Bug 28046][Wis] New - Windows path names are used as relative paths in the DirectoryInfo class.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
21 Jul 2002 21:41:25 -0000


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 roberthahn@epost.de.

http://bugzilla.ximian.com/show_bug.cgi?id=28046

--- shadow/28046	Sun Jul 21 17:41:25 2002
+++ shadow/28046.tmp.22107	Sun Jul 21 17:41:25 2002
@@ -0,0 +1,58 @@
+Bug#: 28046
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details: Windows
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: roberthahn@epost.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Windows path names are used as relative paths in the DirectoryInfo class.
+
+Description of Problem:
+
+The constructor of the DirectoryInfo class is recognizing 
+Windows paths
+in the C:\SomeDirectory format as relative paths and adding the 
+current
+working directory. The microsoft runtime is detecting absolute 
+paths.
+
+Steps to reproduce the problem:
+using System;
+using System.IO;
+
+class 
+DirectoryInfoBug
+{
+	static void Main(string[] args)
+	{
+		DirectoryInfo d = new 
+DirectoryInfo(@"C:\blah");
+		System.Console.WriteLine(d.FullName);
+	}
+}
+
+Actual 
+Results:
+E:\private\source\csharp>mono 
+DirectoryInfoBug.exe
+E:\private\source\csharp\C:\
+
+Expected 
+Results:
+E:\private\source\csharp>DirectoryInfoBug.exe
+C:\
+
+How often does 
+this happen? 
+always :)
+
+Additional Information: