[Mono-list] Traversing directories

Jonathan Pryor jonpryor@vt.edu
15 Jun 2003 22:08:29 -0400

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


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

On Sun, 2003-06-15 at 08:09, Øyvind Hvamstad wrote:
> Hi all. I have problems while traversing directories having names with 
> iso-8859-1 encoding. If a file has say an æ, ø or å in it,  the call to 
> Directory.GetFiles(path) throws an System.NullReferenceException.
> I tried searcing the archives on the subject, but was unable to find 
> anything.
> Can anyone please help?