Re: Bug in UTF8-Validation Code?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Dilger <pgsql@markdilger.com>
Cc: pgsql-hackers@postgresql.org, andrew@supernews.com
Date: 2007-04-02T22:37:11Z
Lists: pgsql-hackers
Mark Dilger <pgsql@markdilger.com> writes: >> pgsql=# select chr(14989485); >> chr >> ----- >> >> (1 row) Is there a principled rationale for this particular behavior as opposed to any other? In particular, in UTF8 land I'd have expected the argument of chr() to be interpreted as a Unicode code point, not as actual UTF8 bytes with a randomly-chosen endianness. Not sure what to do in other multibyte encodings. regards, tom lane