pgsql: Fix (I think) broken usage of MultiByteToWideChar.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix (I think) broken usage of MultiByteToWideChar.
Date: 2007-11-24 21:20:07
Message-ID: 20071124212007.DE3D87540F0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix (I think) broken usage of MultiByteToWideChar. I had missed the
subtlety that this function only returns a null terminator if it's
fed input that includes one; which, in the usage here, it's not.
This probably fixes bugs reported by Thomas Haegi.

Modified Files:
--------------
pgsql/src/backend/tsearch:
ts_locale.c (r1.4 -> r1.5)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tsearch/ts_locale.c?r1=1.4&r2=1.5)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-11-24 21:37:04 pgsql: Reduce routine successful-archiving message from LOG to DEBUG1
Previous Message Tom Lane 2007-11-24 21:16:55 pgsql: Slightly more paranoia and slightly better comments for use of