[Mono-bugs] [Bug 52056][Nor] New - System.IO.Path.GetTempPath() does not end with DirectorySeparatorChar

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 11 Dec 2003 12:07:08 -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 ginga@kit.hi-ho.ne.jp.

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

--- shadow/52056	2003-12-11 12:07:08.000000000 -0500
+++ shadow/52056.tmp.17027	2003-12-11 12:07:08.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 52056
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ginga@kit.hi-ho.ne.jp               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.IO.Path.GetTempPath() does not end with DirectorySeparatorChar
+
+MS.NET's Path.GetTempPath() returns path string which ends with '\' i.e. 
+(I think) Path.DirectorySeparatorChar.
+
+using System;
+using System.IO;
+
+public class MyClass
+{
+	public static void Main()
+	{
+		Console.WriteLine (Path.GetTempPath ());
+	}
+}
+
+Actual Results:
+c:\DOCUME~1\ginga\LOCALS~1\Temp
+
+Expected Results:
+C:\DOCUME~1\ginga\LOCALS~1\Temp\
+
+How often does this happen? 
+Always
+
+Additional Information:
+This can be fixed easily, but it might some existing mono application's 
+behavior.