Обсуждение: pgsql: Fix (I think) broken usage of MultiByteToWideChar.

Поиск
Список
Период
Сортировка

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

От
tgl@postgresql.org (Tom Lane)
Дата:
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)