| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера