diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-09-17 23:19:37 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-09-17 23:19:37 +0200 |
commit | 64e4f68cc70466f736b6ba98c5ec8c9800bee351 (patch) | |
tree | 40dd12424872ebfe93b7067d746cb1481db3d4de | |
parent | e6dd389d06d9d33195afcf77a740df072298959e (diff) |
types: fix formatting escape sequences for 8 bit chars
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | types.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1336,7 +1336,7 @@ ucv_to_string_json_encoded(uc_stringbuf_t *pb, const char *s, size_t len, bool r default: if (*s < 0x20) - ucv_stringbuf_printf(pb, "\\u%04x", *s); + ucv_stringbuf_printf(pb, "\\u%04x", (unsigned char)*s); else ucv_stringbuf_addstr(pb, s, 1); break; |