pgsql: Remove our dependencies on MB_CUR_MAX in favor of believing that

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Remove our dependencies on MB_CUR_MAX in favor of believing that
Дата
Msg-id 20081215145551.0CEC47563FE@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Remove our dependencies on MB_CUR_MAX in favor of believing that
pg_database_encoding_max_length() predicts the maximum character length
returned by wchar2char().  Per Hiroshi Inoue, MB_CUR_MAX isn't usable on
Windows because we allow encoding = UTF8 when the locale says differently;
and getting rid of it seems a good idea on general principles because it
narrows our dependence on libc's locale API just a little bit more.

Also install a check for overflow of the buffer size computation.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        formatting.c (r1.151 -> r1.152)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c?r1=1.151&r2=1.152)

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

Предыдущее
От: mha@postgresql.org (Magnus Hagander)
Дата:
Сообщение: pgsql: Support specifying filename for SSL certificate, key, root
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Reduce the scaling factor for attstattarget to number-of-lexemes