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: [email protected]
Reporter: [email protected]
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.
--