[Mono-list] Traversing directories

Řyvind Hvamstad oyvind@hvamstad.net
Mon, 16 Jun 2003 14:05:02 +0200

Jonathan Pryor wrote:

>Encoding is a tricky subject.  At this point, mono uses glib, which
>assumes that all filenames are encoded as UTF-8 strings.  This is an
>invalid assumption for your environment, resulting in bizarre program
>	http://bugzilla.ximian.com/show_bug.cgi?id=30781
>	http://bugzilla.gnome.org/show_bug.cgi?id=93751
>The fix is (should be?) to set the G_BROKEN_FILENAMES environment
>variable  (presumably to an empty string -- export G_BROKEN_FILENAMES=""
>-- but this isn't clear from the above bug reports).
> - Jon
Thanks Jonathan.

I try the following:

export LC_ALL=no_NO.ISO-8859-1
run application..

This is what they describe in the bug as beeing necessary in order for 
it to work; however the exception still stands.

Unhandled Exception: System.NullReferenceException: A null value was 
found where an object instance was required
in (unmanaged) /usr/lib/libmono.so.0 [0x400d480b]
in (unmanaged) /usr/lib/libmono.so.0 [0x400a658e]
in <0x0002e> 06 System.IO.MonoIO:FindNextFile 

Řyvind Hvamstad (ISO-8859-1)

Things should be made as simple as possible,
but not any simpler.
			-- Albert Einstein