Merge pull request #36 from Herringway/master

fix emitting of unicode characters >0xFFFF
This commit is contained in:
Ferdinand Majerech 2015-10-01 20:52:11 +02:00
commit e5d8c86395

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);
}