pgsql: Fix (I think) broken usage of MultiByteToWideChar. - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix (I think) broken usage of MultiByteToWideChar.
Date
Msg-id 20071124212007.DE3D87540F0@cvs.postgresql.org
Whole thread Raw
List 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:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Slightly more paranoia and slightly better comments for use of
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Reduce routine successful-archiving message from LOG to DEBUG1