]> granicus.if.org Git - postgresql/commit
Fix assorted bugs in contrib/unaccent's configuration file parsing.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Nov 2011 16:48:53 +0000 (11:48 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Nov 2011 16:49:17 +0000 (11:49 -0500)
commitd747a45b46139eb78c060e1f3c3ee4d3dc72db12
tree48169025049eca58804c37b167ef6a982c812882
parentb07b2bdc570cfbb39564c8a70783dbce1edcb3d6
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.
contrib/unaccent/unaccent.c