digitalmars.D.bugs - [Issue 12853] New: std.encoding EncodingSchemeUtf16Native and
- via Digitalmars-d-bugs (23/23) Jun 04 2014 https://issues.dlang.org/show_bug.cgi?id=12853
https://issues.dlang.org/show_bug.cgi?id=12853 Issue ID: 12853 Summary: std.encoding EncodingSchemeUtf16Native and EncodingSchemeUtf32Native decode() and SafeDecode() wrong stripping length Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: ketmar ketmar.no-ip.org Created attachment 1360 --> https://issues.dlang.org/attachment.cgi?id=1360&action=edit bugfix, public domain std.encoding EncodingSchemeUtf16Native and EncodingSchemeUtf32Native decode() and SafeDecode() are wrong at stripping decoded symbols. they should take wchar/dchar sizes into account when stripping decoded bytes from input buffer. fix attached. --
Jun 04 2014