[Issue 20134] autodecode should use replacementDchar rather than throwing on invalid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 16 00:22:59 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20134

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Walter Bright from comment #1)
> Over time, common practice has evolved from rejecting malformed UTF to
> replacing it with replacementDchar, which enables the application (like a
> web browser) to continue processing.

BTW, I don't think this is quite correct. Web browsers both raise an error (in
the dev console) AND continue processing. By using replacementDchar implicitly,
D programs would not know that there was ever a problem.

--


More information about the Digitalmars-d-bugs mailing list