Re: tsearch2 regression test failures
От | Teodor Sigaev |
---|---|
Тема | Re: tsearch2 regression test failures |
Дата | |
Msg-id | 4607A13A.5010804@sigaev.ru обсуждение исходный текст |
Ответ на | Re: tsearch2 regression test failures (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: tsearch2 regression test failures
Re: tsearch2 regression test failures |
Список | pgsql-hackers |
> FWIW, it looks like it failed to reject stopwords. Is it possible you Right. I suppose the problem is with '\r\n'... Try attached patch. -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ *** ./contrib/tsearch2/stopword.c.orig Mon Mar 26 14:25:16 2007 --- ./contrib/tsearch2/stopword.c Mon Mar 26 14:28:25 2007 *************** *** 47,53 **** while (fgets(buf, sizeof(buf), hin)) { ! buf[strlen(buf) - 1] = '\0'; pg_verifymbstr(buf, strlen(buf), false); if (*buf == '\0') continue; --- 47,57 ---- while (fgets(buf, sizeof(buf), hin)) { ! pbuf = buf; ! while( !isspace( *pbuf ) ) ! pbuf++; ! *pbuf = '\0'; ! pg_verifymbstr(buf, strlen(buf), false); if (*buf == '\0') continue;
В списке pgsql-hackers по дате отправления: