pgsql: Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were
Date: 2008-11-10 18:02:21
Message-ID: 20081110180221.0DE947545A4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
xml.c (r1.80 -> r1.81)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/xml.c?r1=1.80&r2=1.81)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-11-10 18:02:27 pgsql: Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were
Previous Message Heikki Linnakangas 2008-11-10 17:59:20 Re: pgsql: Unite ReadBufferWithFork, ReadBufferWithStrategy, and