[Mono-bugs] [Bug 53166][Nor] New - FindFirstFile does not find any files

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 21 Jan 2004 06:32:37 -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 joergr@voelcker.com.


--- shadow/53166	2004-01-21 06:32:37.000000000 -0500
+++ shadow/53166.tmp.1449	2004-01-21 06:32:37.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 53166
+Product: Mono/Runtime
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: JoergR@voelcker.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: FindFirstFile does not find any files
+Description of Problem:
+FindFirstFile doesn't find any files running under XFS/local encodings.
+Steps to reproduce the problem:
+1. Compile attached sample
+2. Run it
+Actual Results:
+No output
+Expected Results:
+File list of current directory.
+How often does this happen? 
+On some systems. I was not able to isolate the setting causing this problem.
+Additional Information:
+The problem was g_convert in FindNextFile. It returns NULL for the found
+directory entries. Replacing it using mono_unicode_from_external from
+utils/strenc it works for us (we have MONO_EXTERNAL_ENCODINGS=default_locale).
+If I could get the original io.c from WebCVS I could provide a patch.