fix emitting of unicode characters >0xFFFF

This commit is contained in:
Cameron Ross 2015-09-25 03:18:37 -03:00
parent 2f3d782c84
commit 91cdb9a6f4

View file

@ -1401,7 +1401,7 @@ struct ScalarWriter
{
//Write an escaped Unicode character.
const format = c <= 255 ? "\\x%02X":
c <= 65535 ? "\\u%04X": "\\u%08X";
c <= 65535 ? "\\u%04X": "\\U%08X";
formattedWrite(appender, format, cast(uint)c);
}