Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 1501 [details]
C# file that repros the incorrect name of a unicode sub dir being returned
This only repros on Mac.
1) Create a subdirectory with unicode chars ("ベートーヴェン") using Directory.CreateDirectory
2) Retrieve the just created subdir with DirectoryInfo.GetFileSystemInfos
3) Check the Name property of the retrieved subdir
Expected: The name of the subdir to match the name it was created with
Actual: The name of the retrieved subdir is different
See the attached repro program that demonstrates this behavior.
To build the attached repro program:
csc /t:exe /out:UnicodeFileRepro.exe Program.cs
Created attachment 1502 [details]
Sample output from running the repro program on OS X
This is sample output from running the repro app, it shows the expected name of the subdirectory and the actual name retrieved at runtime (including the hex equivalent of their encoded bytes)
Invalid as explained in http://lists.ximian.com/pipermail/mono-devel-list/2012-March/038662.html
The underlying OS does not return your non-normalized name string which could have other variants. Suppose you created a folder "Foo" on insensitive file system, it may return "foo" for GetFileSystemInfos().