Re: Re: [COMMITTERS] pgsql: Prevent the injection of invalidly encoded strings by PL/Python

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: [COMMITTERS] pgsql: Prevent the injection of invalidly encoded strings by PL/Python
Дата
Msg-id 16506.1269300593@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Prevent the injection of invalidly encoded strings by PL/Python  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Re: [COMMITTERS] pgsql: Prevent the injection of invalidly encoded strings by PL/Python  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> I have never used Tcl before just now, and the documentation is sketchy,
> but it looks like the behavior of Tcl is kind of mixed in this area.

> Escapes such as "\xd0" are apparently converted to Unicode code points
> rather than bytes when the appropriate OS locale is set.  So that is
> safe.  Except that it doesn't work in some locale/charset setups, such
> as EUC_JP.  To adapt Hannu's original example:

The pltcl code special-cases Unicode IIRC.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: 9.0 release notes done
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: xmlconcat (was 9.0 release notes done)