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 [EMAIL PROTECTED]

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

--- shadow/75391        2005-06-27 10:12:18.000000000 -0400
+++ shadow/75391.tmp.20251      2005-06-27 10:12:18.000000000 -0400
@@ -0,0 +1,77 @@
+Bug#: 75391
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Path.GetDirectoryName returning blank strings for legitimate 
paths
+
+Description of Problem:
+System.Path.GetDirectoryName returning blank strings for legitimate paths.
+ The attached code works correclty in Microsoft's .NET framework, but not
+in  Mono under Debian unstable with 1.1.8.1 packages from debian.meeby.net.
+ Not tested with a recent SVN release.
+
+Reproduce the problem:
+---------
+
+using System;
+using System.IO;
+
+class test { static void Main() {
+
+  string sample_windows_path =
+  "c:\\windows\\microsoft.net\\framework\\v1.1.4322\\mscorlib.dll";
+
+  string sample_unix_path1 =
+  "\\usr\\lib\\mono\\1.0\\mscorlib.dll";
+
+  string sample_unix_path2 =
+  "/usr/lib/mono/1.0/mscorlib.dll";
+
+  Console.WriteLine(
+  "winpath = \""+Path.GetDirectoryName(sample_windows_path)+"\""
+  );
+
+  Console.WriteLine(
+  "unixpath1 = \""+Path.GetDirectoryName(sample_unix_path1)+"\""
+  );
+
+  Console.WriteLine(
+  "unixpath2 = \""+Path.GetDirectoryName(sample_unix_path2)+"\""
+  );
+
+}}
+
+-----
+Actual Results:
+when run under Mono in linux, the output is:
+
+winpath = ""
+unixpath1 = ""
+unixpath2 = "/usr/lib/mono/1.0"
+
+-----
+Expected Results:
+when run under the official MS .NET the output is:
+
+winpath = "c:\windows\microsoft.net\framework\v1.1.4322"
+unixpath1 = "\usr\lib\mono\1.0"
+unixpath2 = "\usr\lib\mono\1.0"
+
+How often does this happen? 
+Always
+
+Additional Information:
+Came across this bug while trying to make Microsoft Enterprise Library work
+under Mono+Linux.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to