Re: Bug in UTF8-Validation Code?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in UTF8-Validation Code?
Дата
Msg-id 25298.1175490481@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in UTF8-Validation Code?  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
>> No, we've never exported those with the intent that client code should
>> use 'em.

> I thought PQescapeString() of 8.3 uses mbverify functions to make sure
> that user supplied multibyte string is valid.

Certainly --- but we can change PQescapeString to match whatever we do
with the pg_wchar functions.  The question was whether we intend to
support client application code (outside libpq) using those functions.
That's definitely not the intent.  exports.txt lists only PQmblen and
pg_utf_mblen as exported (and I have to wonder why the latter is
separately exported...), which means that client code on modern
platforms isn't even capable of getting at the others.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Bug in UTF8-Validation Code?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Implicit casts to text