Re: TM formating patch

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: TM formating patch
Дата
Msg-id BAY114-F169CD3857D9FA46937FC0FF9980@phx.gbl
обсуждение исходный текст
Ответ на TM formating patch  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Ответы Re: TM formating patch  (Bruce Momjian <bruce@momjian.us>)
Re: TM formating patch  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
>"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
> > This patch correct bug, when localized day or month names was incorectly
> > trnasformed to lower or upper string.
>
>I really dislike the API you've chosen for upper_str/lower_str ---
>overwriting the input on the assumption that it's long enough is a
>buffer overrun bug waiting to happen, because (at least in utf8)
>changing case doesn't preserve the byte length of the string.
>Please make them return a freshly palloc'd string instead.
>
>            regards, tom lane

I correct it, and test it for czech latin2 and utf8 case.

Regards
Pavel Stehule

_________________________________________________________________
Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [pgsql-patches] Phantom Command IDs, updated patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-patches] Phantom Command IDs, updated patch