]> 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:50:18 +0000 (11:50 -0500)
commitced3a93ccbbd0a3866f2324662f7a1fa4c31909a
treeea1927bc1a201c6a706569e2bdcf371f762be951
parentffc703a891e336b9bf4b74112bd4684d1f990fab
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