Re: tsearch2 regression test failures

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: tsearch2 regression test failures
Дата
Msg-id 4607CC20.1020107@dunslane.net
обсуждение исходный текст
Ответ на Re: tsearch2 regression test failures  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Teodor Sigaev <teodor@sigaev.ru> writes:
>   
>> !             pbuf = buf;
>> !             while( !isspace( *pbuf ) )
>> !                 pbuf++;
>> !             *pbuf = '\0';
>>     
>
> Surely the loop needs to look like
>
>     while (*pbuf && !isspace(*pbuf))
>         pbuf++;
>
>   
Yes.

But in any case, I am having difficulty in understanding why we are 
seeing a CR at all - the file should be opened in text mode, which 
should translate CR-LF in the file to a simple LF in the buffer. So 
regardless of the odd behavior of CVSNT, which presumabye caused this 
mess, it's rather strange.

Can someone please explain?

cheers

andrew




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tsearch2 regression test failures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Server-side support of all encodings