[Issue 5904] std.json parseString doesn't handle chars outside the BMP
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 25 09:42:53 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=5904
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dlang-bugzilla at thecybershad
| |ow.net
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Test case:
///////////// test.d /////////////
import std.json;
void main()
{
string s = `"\uD834\uDD1E"`;
auto j = parseJSON(s);
assert(j.str == "\U0001D11E");
}
//////////////////////////////////
--
More information about the Digitalmars-d-bugs
mailing list