]> granicus.if.org Git - postgresql/commit
Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were measuring
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 18:02:20 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 18:02:20 +0000 (18:02 +0000)
commit5e11e73d37eb7e356899f307c7c2ba7212c5aac0
tree5a190036854d206340c6a7a66da6b2598290bc54
parent45d146a6dbc2cba9fcc7e1a0449eae347471f296
Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were measuring
the length of a UTF8 character with pg_mblen (wrong if DB encoding isn't
UTF8), and the latter was blithely assuming that a static buffer would somehow
revert to all zeroes for each use.
src/backend/utils/adt/xml.c