Thread: Gothic moth fails on Tsearch2 contrib module check (PG8.2)

Gothic moth fails on Tsearch2 contrib module check (PG8.2)

From
Zdenek Kotala
Date:
You can see strange error on gothic moth (Solaris Nevada, SunStudio 12, 
Sparc):

http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=gothic_moth&dt=2009-09-08%2019:06:01

================= pgsql.19404/contrib/tsearch2/regression.diffs 
===================
*** ./expected/tsearch2.out    Tue Sep  8 21:08:08 2009
--- ./results/tsearch2.out    Tue Sep  8 21:38:03 2009
***************
*** 2453,2459 ****   <body>   <b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i>   <a
href="http://www.google.com/foo.bar.html"target="_blank">YES 
 
 </a>
!   ff-bg   <script>          document.write(15);   </script>
--- 2453,2459 ----   <body>   <b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i>   <a
href="http://www.google.com/foo.bar.html"target="_blank">YES 
 
 </a>
!  ff-bgff-bg   <script>          document.write(15);   </script>

======================================================================


ff-bg is doubled in the output and space is missing. It smells like 
compiler bug. I will look closer on it next week, but can somebody point 
me place in the code where I shall start?
Thanks Zdenek



Re: Gothic moth fails on Tsearch2 contrib module check (PG8.2)

From
Teodor Sigaev
Date:
> ff-bg is doubled in the output and space is missing. It smells like 
> compiler bug. I will look closer on it next week, but can somebody point 
> me place in the code where I shall start?

Play around HLIDSKIP macros. Parser returns hyphen word with several lexemes, in 
example above: 'ff-bg', 'ff', '-', 'bg'. Headline generator knows about that and 
it should ignore full hyphen word and show it part by part. It seems to me, 
somehow it doesn't ignore full hyphen word - and HLIDSKIP defines types of 
lexemes which should be skipped.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/