digitalmars.D.bugs - [Issue 3347] New: std.stdio.writeln attempts to print illegal unicode characters
- d-bugmail puremagic.com (28/28) Sep 26 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (10/10) Sep 26 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (13/13) Sep 26 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (8/8) Sep 27 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (6/6) Oct 05 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (9/9) Oct 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3347
- d-bugmail puremagic.com (14/14) Jan 16 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3347
http://d.puremagic.com/issues/show_bug.cgi?id=3347 Summary: std.stdio.writeln attempts to print illegal unicode characters Product: D Version: 2.034 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bugzilla digitalmars.com 14:55:59 PDT --- The following program: import std.stdio; import std.c.stdio; void main() { dchar d; printf("%x\n", d); writeln(d); } correctly shows that d is initialized to \uFFFF, an illegal Unicode character, but writeln attempts to print it anyway as a character. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3347 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrei metalanguage.com 17:05:52 PDT --- Should writeln throw here? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3347 Stewart Gordon <smjg iname.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com What are the rules about valid uses of the permanently unassigned codepoints U+FFFE and U+FFFF? ISTM while it doesn't make sense to write either to stdout, it would be valid to send one, for example, to a MemoryStream for the app's internal use. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 26 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3347 20:21:35 PDT --- I don't know what the right answer is, but it has come up and I think it deserves to be an issue. I propose we let it cook for a while and see if anyone comes up with a compelling argument for what the correct behavior should be. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 27 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3347 15:05:51 PDT --- Yeah, I think it would probably be a mistake for writeln to throw. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 05 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3347 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED 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=3347 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX 14:09:10 PST --- I'm closing this now. Upon further experience, it seems fair to check for Unicode validity in upper layers and leave writeln to write invalid characters on a best-effort basis. If there are solid arguments to the contrary and good alternative ideas, please reopen. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 16 2011