Fix assorted bugs in contrib/unaccent's configuration file parsing.

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

Commit: ced3a93ccbbd0a3866f2324662f7a1fa4c31909a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-07T16:50:18Z
Releases: 9.2.0
Fix assorted bugs in contrib/unaccent's configuration file parsing.

Make it use t_isspace() to identify whitespace, rather than relying on
sscanf which is known to get it wrong on some platform/locale combinations.
Get rid of fixed-size buffers.  Make it actually continue to parse the file
after ignoring a line with untranslatable characters, as was obviously
intended.

The first of these issues is per gripe from J Smith, though not exactly
either of his proposed patches.

Files

PathChange+/−
contrib/unaccent/unaccent.c modified +67 −19