Comment #0 by dlang-bugzilla — 2007-04-24T16:25:55Z
This simple program fails (with "file not found") when it's given a filename containing international characters. I believe this is because Phobos assumes that the OS sends them as UTF-8...
import std.stdio;
import std.file;
void main(char[][] argv)
{
char[] data = cast(char[]) read(argv[1]);
writef("%s", data);
}
Marked as P2 because it makes D command-line programs unusable with files containing international characters.
Comment #1 by dlang-bugzilla — 2007-04-24T16:43:41Z
Quick workaround: import std.windows.charset and add:
foreach(ref arg;argv) arg = fromMBSz(arg.ptr);
at the beginning of main().
Comment #2 by robert — 2010-03-27T12:02:38Z
Created attachment 590
objdump --dwarf test > dwarf
Comment #3 by robert — 2010-03-27T12:03:10Z
Created attachment 591
objdump --dwarf test > dwarf2
Comment #4 by robert — 2010-03-27T12:07:00Z
Created attachment 592
diff -u dwarf2 dwarf
Comment #5 by robert — 2010-03-27T12:08:48Z
I have no idea why these patches were added to this issue, they were meant to be added to bug #3987...
Comment #6 by andrei — 2011-06-05T08:10:22Z
Putting this task up for grabs as I don't have a Windows system to test on.
Comment #7 by verylonglogin.reg — 2012-09-12T01:19:03Z