[Mono-bugs] [Bug 53035][Min] New - Path.GetDirectoryName ends with a separator character

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Jan 2004 16:28: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 dave-mono@earth.li.


--- shadow/53035	2004-01-18 16:28:08.000000000 -0500
+++ shadow/53035.tmp.1039	2004-01-18 16:28:08.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 53035
+Product: Mono/Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dave-mono@earth.li               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Path.GetDirectoryName ends with a separator character
+Description of Problem:
+Path.GetDirectoryName ends with a separator character. 
+In fact there is code that explicitly adds one if there is not one at the
+end of the string it is returning. However the spec says:
+  "The string returned by this method consists of all characters in the
+   path up to but excluding the last DirectorySeparatorChar or 
+   AltDirectorySeparatorChar character."
+Steps to reproduce the problem:
+Actual Results:
+Expected Results:
+Additional Information:
+This might affect the functioning of existing code, so is quite an
+important change.