diff options
| author | Joey Adams | 2010-08-06 06:23:12 +0000 |
|---|---|---|
| committer | Joey Adams | 2010-08-06 06:23:12 +0000 |
| commit | e87340e2b0c533d1c1d08ddee6471757bc27b74f (patch) | |
| tree | e22b22154bb1b68a6ccc0f9edf176977f67de9cd /json.c | |
| parent | ded4716d23370cccf3f1384a11b2d0ba7dbbbf40 (diff) | |
Finished refining and documenting code in util.c / util.h
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'; |
