Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group