Cleanup for some problems in tsearch patch:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 7351b5fa1781c3942d2d5ff2116d2d0ba882bd42
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-08-25T00:03:59Z
Releases: 8.3.0
Cleanup for some problems in tsearch patch:
- ispell initialization crashed on empty dictionary file
- ispell initialization crashed on affix file with prefixes but no suffixes
- stop words file was run through pg_verify_mbstr, with database
  encoding, but it's supposed to be UTF-8; similar bug for synonym files
- bunch of comments added, typos fixed, and other cleanup

Introduced consistent encoding checking/conversion of data read from tsearch
configuration files, by doing this in a single t_readline() subroutine
(replacing direct usages of fgets).  Cleaned up API for readstopwords too.

Heikki Linnakangas

Files