|
Hi,
Has anyone else noticed that the GetDirectories code (and probably file listing code) doesn’t return directories with “foreign” characters (accented letters, etc.)?
I traced this down to the call to glob() which, when compiled in a test C program, returns all the directories, but for some reason within Mono doesn’t.
Is this some locale related strangeness??????
Best regards,
-elan
DirectoryInfo dirInfo = new DirectoryInfo(dir); DirectoryInfo[] subDirs = dirInfo.GetDirectories();
foreach (DirectoryInfo subDir in subDirs) { Console.WriteLine("Directory is: {0}.", subDir.Name); }
This code lists the offending directory in a small test program, but not when embedded into the Mono source:
glob_t globbuf; int i = 0;
glob("/mnt/trove/Music/Blonde Redhead/*", 0, NULL, &globbuf);
printf("Matches: %d\n", globbuf.gl_pathc); for (i=0; i<globbuf.gl_pathc; i++) printf(" -> '%s'\n", globbuf.gl_pathv[i]); |
- RE: [Mono-list] GetDirectories, glob, and high ACS... Elan Feingold
- RE: [Mono-list] GetDirectories, glob, and hig... Elan Feingold
- RE: [Mono-list] GetDirectories, glob, and... Gonzalo Paniagua Javier
