[Mono-dev] bug 3860 - DirectoryInfo.GetFileSystemInfos returns a subdirectory that has unicode chars with the incorrect name
Jared Watts
jared at symform.com
Mon Mar 12 19:11:50 UTC 2012
I opened bug 3860<https://bugzilla.xamarin.com/show_bug.cgi?id=3860> earlier today, but I’m curious if anyone on the dev list has run into a similar issue or knows of a workaround.
https://bugzilla.xamarin.com/show_bug.cgi?id=3860
Basically, on Mac OS X, Directory.CreateDirectory is used to create a sub directory with Unicode chars in the path (ベートーヴェン). When that directory is retrieved with DirectoryInfo.GetFileSystemInfos, the Name property is different than what it was created with.
The attached .out file has the output from the sample repro program after it was run on Mac OS X.
If you want to build the attached repro program:
csc /t:exe /out:UnicodeFileRepro.exe Program.cs
Thanks for any debugging ideas/workarounds!
- jared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120312/cc082c8d/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Program.cs
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120312/cc082c8d/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode-file-repro.out
Type: application/octet-stream
Size: 202 bytes
Desc: unicode-file-repro.out
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120312/cc082c8d/attachment.obj>
More information about the Mono-devel-list
mailing list