[Mono-bugs] [Bug 42631][Maj] New - Path.GetFullPath adds duplicate drive ("c:\c:\") on win32

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 8 May 2003 16:03:23 -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 pelle.johnsen@mail.dk.

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

--- shadow/42631	Thu May  8 16:03:23 2003
+++ shadow/42631.tmp.20000	Thu May  8 16:03:23 2003
@@ -0,0 +1,48 @@
+Bug#: 42631
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: win 2000
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pelle.johnsen@mail.dk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Path.GetFullPath adds duplicate drive ("c:\c:\") on win32
+
+Description of Problem:
+
+Path.GetFullPath returns wrong result on win32 with paths containing drive 
+letter. The drive letter is duplicated e.g. "C:\" becomes "C:\C:\"
+
+Steps to reproduce the problem:
+
+using System;
+using System.IO;
+
+class Test
+{
+    static void Main()
+    {
+        Console.WriteLine(Path.GetFullPath(@"C:\dir\subdir"));
+    }
+}
+
+Actual Results:
+C:\C:\dir\subdir
+
+Expected Results:
+C:\C:\dir\subdir
+
+How often does this happen? 
+Always
+
+Additional Information:
+This happens with mono-0.24. It is probably related to the recent fixes to 
+Path.GetFullPath