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:07:00 +0000 (00:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Aug 2010 00:07:00 +0000 (00:07 +0000)
commit9217dee11811b37495766c58e4f67c9b3461c962
tree47e5fd4e2118f81650fa932a80b119ca1ad08122
parent120782773d7e9e80a2e77f2fee5cf7a016e017d8
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