[Mono-bugs] [Bug 58525][Wis] New - ERROR_INVALID_NAME on a valid Unix filename

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 14 May 2004 15:57:54 -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 trow@ximian.com.

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

--- shadow/58525	2004-05-14 15:57:54.000000000 -0400
+++ shadow/58525.tmp.10068	2004-05-14 15:57:54.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 58525
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: trow@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ERROR_INVALID_NAME on a valid Unix filename
+
+System.IO doesn't seem to like directories that contain question marks. 
+Trying to look at all files in a directory named 'foo?' produces:
+
+  Unhandled Exception: System.IO.IOException: Win32 IO returned
+ERROR_INVALID_NAME. Path: /home/trow/foo?
+in <0x0037b> System.IO.Directory:GetFileSystemEntries
+(string,string,System.IO.FileAttributes,System.IO.FileAttributes)
+in <0x00018> System.IO.Directory:GetDirectories (string,string)
+in <0x00033> System.IO.DirectoryInfo:GetDirectories (string)
+in <0x00058> (wrapper remoting-invoke-with-check)
+System.IO.DirectoryInfo:GetDirectories (string)
+in <0x0003e> System.IO.DirectoryInfo:GetFileSystemInfos (string)
+in <0x00058> (wrapper remoting-invoke-with-check)
+System.IO.DirectoryInfo:GetFileSystemInfos (string)
+in <0x00016> System.IO.DirectoryInfo:GetFileSystemInfos ()
+in <0x00050> (wrapper remoting-invoke-with-check)
+System.IO.DirectoryInfo:GetFileSystemInfos ()
+in <0x00111> BadName:Main ()
+
+I'll attach a test case.