| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix assorted bugs in contrib/unaccent's configuration file parsi |
| Date: | 2011-11-07 16:50:34 |
| Message-ID: | E1RNSP4-0006yn-Ji@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/ced3a93ccbbd0a3866f2324662f7a1fa4c31909a
Modified Files
--------------
contrib/unaccent/unaccent.c | 88 +++++++++++++++++++++++++++++++++----------
1 files changed, 68 insertions(+), 20 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2011-11-07 17:27:48 | pgsql: Minor grammar improvements. |
| Previous Message | Heikki Linnakangas | 2011-11-07 15:44:21 | pgsql: Fix timestamp range subdiff functions, when using float datetime |