diff options
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -911,12 +911,12 @@ encode_string(StringInfo out, const char *string, size_t length, char quote, if (c < 0x1F || (c >= 0x80 && escape_unicode)) { /* Encode using \u.... */ - unsigned int uc, - lc; + pg_wchar uc; + unsigned int lc; char txt[13]; s--; - utf8_decode_char_nocheck(&s, &uc); + uc = utf8_decode_char(&s); txt[0] = '\\'; txt[1] = 'u'; |
