]> granicus.if.org Git - postgresql/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:31 +0000 (00:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Aug 2010 00:06:31 +0000 (00:06 +0000)
commit00fb7f5e58738e02a3649a8f0c8e20dadb8f1af7
tree0085dbfb05f4c7b8c1797e388629e14070f0d7fc
parent7f4de11c2990640c58312217775907f5aac57af2
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