[Issue 12853] New: std.encoding EncodingSchemeUtf16Native and EncodingSchemeUtf32Native decode() and SafeDecode() wrong stripping length
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 4 08:54:10 PDT 2014
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 at puremagic.com
Reporter: ketmar at 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.
--
More information about the Digitalmars-d-bugs
mailing list