digitalmars.D.bugs - [Issue 1188] New: Phobos doesn't correctly parse command-line arguments containing international characters
- d-bugmail puremagic.com (26/26) Apr 24 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (6/6) Apr 24 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (10/10) Oct 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (7/7) Mar 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (7/7) Mar 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (7/7) Mar 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (11/11) Mar 27 2010 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (10/10) Jun 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (6/6) Sep 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (18/18) Nov 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (12/12) Nov 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1188
- d-bugmail puremagic.com (12/12) Nov 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1188
http://d.puremagic.com/issues/show_bug.cgi?id=1188 Summary: Phobos doesn't correctly parse command-line arguments containing international characters Product: D Version: 1.013 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: thecybershadow gmail.com 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. --
Apr 24 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1188 ------- Comment #1 from thecybershadow gmail.com 2007-04-24 16:43 ------- Quick workaround: import std.windows.charset and add: foreach(ref arg;argv) arg = fromMBSz(arg.ptr); at the beginning of main(). --
Apr 24 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1188 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #2 from Robert Clipsham <robert octarineparrot.com> 2010-03-27 12:02:38 PDT --- Created an attachment (id=590) objdump --dwarf test > dwarf -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 27 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #3 from Robert Clipsham <robert octarineparrot.com> 2010-03-27 12:03:10 PDT --- Created an attachment (id=591) objdump --dwarf test > dwarf2 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 27 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #4 from Robert Clipsham <robert octarineparrot.com> 2010-03-27 12:07:00 PDT --- Created an attachment (id=592) diff -u dwarf2 dwarf -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 27 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1188 Robert Clipsham <robert octarineparrot.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robert octarineparrot.com --- Comment #5 from Robert Clipsham <robert octarineparrot.com> 2010-03-27 12:08:48 PDT --- I have no idea why these patches were added to this issue, they were meant to be added to bug #3987... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 27 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1188 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei metalanguage.com |nobody puremagic.com --- Comment #6 from Andrei Alexandrescu <andrei metalanguage.com> 2011-06-05 08:10:22 PDT --- Putting this task up for grabs as I don't have a Windows system to test on. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 05 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #7 from Denis Shelomovskij <verylonglogin.reg gmail.com> 2012-09-12 12:19:03 MSD --- https://github.com/D-Programming-Language/phobos/pull/789 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1188 Alex Rønne Petersen <alex lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |alex lycus.org Resolution| |FIXED --- Comment #8 from github-bugzilla puremagic.com 2012-11-01 22:54:35 CET --- Commits pushed to phobos-1.x at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4e4db66985e76925d2a15cc7f2b83aad625d2e35 Fix Issue 1188 by copying args processing code from druntime https://github.com/D-Programming-Language/phobos/commit/5469df0b5fa649f8421a981a46815f0288d2a46a Merge pull request #789 from denis-sh/fix-Issue-1188 Fix issue 1188 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 01 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #8 from github-bugzilla puremagic.com 2012-11-01 14:54:35 PDT --- Commits pushed to phobos-1.x at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4e4db66985e76925d2a15cc7f2b83aad625d2e35 Fix Issue 1188 by copying args processing code from druntime https://github.com/D-Programming-Language/phobos/commit/5469df0b5fa649f8421a981a46815f0288d2a46a Merge pull request #789 from denis-sh/fix-Issue-1188 Fix issue 1188 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 01 2012
http://d.puremagic.com/issues/show_bug.cgi?id=1188 --- Comment #9 from github-bugzilla puremagic.com 2012-11-20 06:16:55 PST --- Commits pushed to phobos-1.x at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f52cb5c94078d9fe73ad9663a861bf195a833888 Fix Issue 1188 by copying args processing code from druntime https://github.com/D-Programming-Language/phobos/commit/7653b6a20c7053c1994a0496933278369cb93feb Merge pull request #962 from denis-sh/fix2-Issue-1188 Fix issue 1188 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 20 2012