summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJoey Adams2010-08-05 04:17:51 +0000
committerJoey Adams2010-08-05 04:17:51 +0000
commit2a681508a61a8cdcc3fb67f0f014ddb0939c9b39 (patch)
treec962574f302e13bf668defcc6f8889031e3227c9 /util.c
parent1dab8166427da17d43c6ebaa6287447d3dd174b5 (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.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/util.c b/util.c
index 763966a..48cd4ff 100644
--- a/util.c
+++ b/util.c
@@ -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)
{