Bug 17557 – std.json should not do UTF decoding when parsing

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-26T10:00:51Z
Last change time
2018-01-05T13:29:33Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2017-06-26T10:00:51Z
UTF decoding is not necessary for parsing JSON, thus when the input is a string, decoding should not be done. I.e. this should work: parseJSON("\"\xFF\"").str == "\xFF");
Comment #1 by dlang-bugzilla — 2017-06-26T10:03:38Z
Comment #2 by github-bugzilla — 2017-07-03T09:07:46Z
Commit pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/226f8e001c256836bdcc7917443704db93f318c3 Fix Issue 17557 - std.json should not do UTF decoding when parsing
Comment #3 by github-bugzilla — 2017-07-08T17:09:25Z
Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/226f8e001c256836bdcc7917443704db93f318c3 Fix Issue 17557 - std.json should not do UTF decoding when parsing
Comment #4 by github-bugzilla — 2018-01-05T13:29:33Z
Commit pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/226f8e001c256836bdcc7917443704db93f318c3 Fix Issue 17557 - std.json should not do UTF decoding when parsing