diff options
| author | Joey Adams | 2010-08-05 04:17:51 +0000 |
|---|---|---|
| committer | Joey Adams | 2010-08-05 04:17:51 +0000 |
| commit | 2a681508a61a8cdcc3fb67f0f014ddb0939c9b39 (patch) | |
| tree | c962574f302e13bf668defcc6f8889031e3227c9 /util.c | |
| parent | 1dab8166427da17d43c6ebaa6287447d3dd174b5 (diff) | |
Lifted 0xFFFE/0xFFFF Unicode code point restriction.
Requiring decoded escapes to not be 0xFFFE or 0xFFFF is overzealous,
I think. In any case, this isn't even a comprehensive list of the codepoints
considered "invalid".
Also, removed utf8_encode_char helper function, as it was extremely trivial
and used in only one place.
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -193,13 +193,6 @@ utf8_validate(const char *str, size_t length) return true; } -int -utf8_encode_char(char *out, unsigned int uc) -{ - unicode_to_utf8(uc, (unsigned char *) out); - return pg_utf_mblen((unsigned char *) out); -} - char * server_to_utf8(const char *str, int len) { |
