]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix psql's copy of utf2ucs() to match the backend's copy exactly;
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Aug 2010 00:06:42 +0000 (00:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Aug 2010 00:06:42 +0000 (00:06 +0000)
commitc22e53d010b83119f6d7d46c1c8a187de5e3fe89
treec446f3dbaa0af9cca3b9dc8ffbb9c9550c74e5c1
parent7f325c609a7a0f0e038da7e132656437a8d2817a
Fix psql's copy of utf2ucs() to match the backend's copy exactly;
in particular, propagate a fix in the test to see whether a UTF8 character has
length 4 bytes.  This is likely of little real-world consequence because
5-or-more-byte UTF8 sequences are not supported by Postgres nor seen anywhere
in the wild, but still we may as well get it right.  Problem found by Joseph
Adams.

Bug is aboriginal, so back-patch all the way.
src/bin/psql/mbprint.c