[Mono-bugs] [Bug 51065][Nor] Changed - File.GetFiles not working.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 19 Nov 2003 03:58:18 -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 jeroen@xs4all.nl.

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

--- shadow/51065	2003-11-18 05:55:13.000000000 -0500
+++ shadow/51065.tmp.31429	2003-11-19 03:58:18.000000000 -0500
@@ -65,6 +65,21 @@
 
 ------- Additional Comments From miguel@ximian.com  2003-11-17 19:39 -------
 Just updating the bug information and moving to the right place. 
 
 ------- Additional Comments From dick@ximian.com  2003-11-18 05:55 -------
 Try with CVS HEAD mono runtime
+
+------- Additional Comments From Jeroen@xs4all.nl  2003-11-19 03:58 -------
+After some debugging (FindFirstFile method in mono/io-layer/io.c) i
+noticed the following:
+
+(gdb) n
+2253            utf8_pattern = mono_unicode_to_external (pattern);
+(gdb) p utf8_pattern
+$3 = (gchar *) 0x3099f1d8 "0\231َ¸0\231يب\020!w\b0\231ٍ\030"
+
+I couldn't verify whether the "pattern" parameter passed to the
+FindFirstFile method is valid (print *pattern returned "cannot access
+memory at address ..."). The value i pass in C# is '*' (see example
+code). But assuming the value passed to the method is ok, it seems
+mono_unicode_to_external doesn't work right.