[Mono-bugs] [Bug 65727][Nor] New - DirectoryInfo.GetFiles() doesn't correctly return a funky filename

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 10 Sep 2004 17:29:32 -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 joeshaw@novell.com.

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

--- shadow/65727	2004-09-10 17:29:32.000000000 -0400
+++ shadow/65727.tmp.16139	2004-09-10 17:29:32.000000000 -0400
@@ -0,0 +1,26 @@
+Bug#: 65727
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: joeshaw@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DirectoryInfo.GetFiles() doesn't correctly return a funky filename
+
+I have a file on my filesystem which has a ^M at the end of it.  Don't ask
+me, it was in a CVS checkout.  Anyway, this file shows up as "Icon?" in ls,
+but when I tab complete it in bash I get "Icon^M".  In nautilus sometimes
+it shows a linebreak and sometimes the unicode value.
+
+Anyway, when I iterate across the return values of GetFiles(), the
+character is stripped out, leaving me with "Icon", which when you later try
+to do File.Exists() on it returns false.