[Mono-bugs] [Bug 75443][Wis] New - DirectoryInfo.FullName strips directory separator chars from end

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jul 2 06:02:22 EDT 2005


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 allan at imeem.com.

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

--- shadow/75443	2005-07-02 06:02:22.000000000 -0400
+++ shadow/75443.tmp.30859	2005-07-02 06:02:22.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 75443
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: allan at imeem.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DirectoryInfo.FullName strips directory separator chars from end
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Regardless of what was fed into the constructor, the mono implementation of
+DirectoryInfo.FullName in the System.IO namespace will strip directory
+separator characters from the end of the path, while the microsoft
+implementation does not.
+
+Steps to reproduce the problem:
+The following toy program illustrates this bug:
+
+using System;
+using System.IO;
+
+namespace DirInfo
+{
+	class Class1
+	{
+		[STAThread]
+		static void Main(string[] args)
+		{
+			DirectoryInfo blargle = new DirectoryInfo("something" +
+Path.DirectorySeparatorChar);
+			System.Console.WriteLine(blargle.FullName);
+		}
+	}
+}
+
+Actual Results:
+the path of the working directory, followed by "something", no directory
+separator character at the end.
+
+Expected Results:
+In the MS implementation, the path of the working directory, followed by
+"something" and then a directory separator character.
+
+How often does this happen? 
+every time.
+
+Additional Information:


More information about the mono-bugs mailing list