pgsql: Fix assorted bugs in contrib/unaccent's configuration file parsi

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix assorted bugs in contrib/unaccent's configuration file parsi
Дата
Msg-id E1RNSP4-0006yr-If@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d747a45b46139eb78c060e1f3c3ee4d3dc72db12

Modified Files
--------------
contrib/unaccent/unaccent.c |   88 +++++++++++++++++++++++++++++++++----------
1 files changed, 68 insertions(+), 20 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix assorted bugs in contrib/unaccent's configuration file parsi
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix assorted bugs in contrib/unaccent's configuration file parsi