fix emitting of unicode characters >0xFFFF
This commit is contained in:
parent
2f3d782c84
commit
91cdb9a6f4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue