diff options
Diffstat (limited to 'types.c')
-rw-r--r-- | types.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1405,10 +1405,11 @@ ucv_to_string_json_encoded(uc_stringbuf_t *pb, const char *s, size_t len, bool r break; default: - if (*s < 0x20) + if ((unsigned char)*s < 0x20) ucv_stringbuf_printf(pb, "\\u%04x", (unsigned char)*s); else ucv_stringbuf_addstr(pb, s, 1); + break; } } |