diff options
author | David Robillard <d@drobilla.net> | 2013-03-31 17:13:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-31 17:13:00 +0000 |
commit | 6114b08ae0cb3958af2da6b3185471b0cb8dfd68 (patch) | |
tree | 41357a2ce54b86da45e9f60a2bf0c1c478ccea46 /src | |
parent | cf7dc2c676f61de2a019b1ecc8cf9e736e488c2e (diff) | |
download | serd-6114b08ae0cb3958af2da6b3185471b0cb8dfd68.tar.gz serd-6114b08ae0cb3958af2da6b3185471b0cb8dfd68.tar.bz2 serd-6114b08ae0cb3958af2da6b3185471b0cb8dfd68.zip |
Write \uFFFF, not \U0000FFFF.
git-svn-id: http://svn.drobilla.net/serd/trunk@448 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index 5b896f94..b0e61cb1 100644 --- a/src/writer.c +++ b/src/writer.c @@ -209,7 +209,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size) return sink(utf8, *size, writer); } - if (c < 0xFFFF) { + if (c <= 0xFFFF) { snprintf(escape, sizeof(escape), "\\u%04X", c); return sink(escape, 6, writer); } else { |