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

Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #1 from Andrej Mitrovic <[email protected]> ---
Interesting problem. I think decode is wrong in using asserts here. asserts are
for checking program state, enforce is for checking input. So I think the
assert should be changed to:

enforceEx!UTFException(isValidDchar(result));

Or something similar. monarchdodra what do you think?

--

Reply via email to