| От | Tom Lane |
|---|---|
| Тема | Re: Patch: add conversion from pg_wchar to multibyte |
| Дата | |
| Msg-id | 6759.1341535595@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Patch: add conversion from pg_wchar to multibyte (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: Patch: add conversion from pg_wchar to multibyte
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Jul 5, 2012 at 7:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hm, several of these routines seem to neglect to advance the "from"
>> pointer?
> Err... yeah. That's not a bug I introduced, but I should have caught
> it... and it does make me wonder how well this code was tested.
> Does the attached look like an appropriate fix?
I'd be inclined to put the from++ and len-- at the bottom of each loop,
and in that order every time, just for consistency and obviousness.
But yeah, that's basically what's needed.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера