]> 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:27 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 10 Nov 2008 18:02:27 +0000 (18:02 +0000)
commit47925b83cb1451ceb4fa37e70ee46eef064bd412
treeed25cf14a6850e59403ada020a2eab0134bec200
parentaf9b481653240fe1ffd66f184026ea24928abcb2
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