[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
>behavior.
>
>See:
> 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 G_BROKEN_FILENAMES=1
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.
<exception>
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
(intptr,System.IO.MonoIOStat&,System.IO.MonoIOError&)
</exception>
--
Øyvind Hvamstad (ISO-8859-1)
http://me.digidix.com
Things should be made as simple as possible,
but not any simpler.
-- Albert Einstein