Re: Bug in UTF8-Validation Code?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in UTF8-Validation Code?
Дата
Msg-id 21381.1175696548@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bug in UTF8-Validation Code?  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Bug in UTF8-Validation Code?  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Bug in UTF8-Validation Code?  (Tatsuo Ishii <ishii@postgresql.org>)
Re: Bug in UTF8-Validation Code?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Right -- IMHO what we should be doing is reject any input to chr() which
> is beyond plain ASCII (or maybe > 255), and create a separate function
> (unicode_char() sounds good) to get an Unicode character from a code
> point, converted to the local client_encoding per conversion_procs.

Hm, I hadn't thought of that approach, but another idea is that the
argument of chr() is *always* a unicode code point, and it converts
to the current encoding.  Do we really need a separate function?
        regards, tom lane


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

Предыдущее
От: Markus Schiltknecht
Дата:
Сообщение: Re: Auto Partitioning
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Vacuum in multi-statement