Обсуждение: Re: [COMMITTERS] pgsql: Tell gettext which codeset to use by calling

Поиск
Список
Период
Сортировка

Re: [COMMITTERS] pgsql: Tell gettext which codeset to use by calling

От
Teodor Sigaev
Дата:
> Log Message:
> -----------
> Tell gettext which codeset to use by calling bind_textdomain_codeset(). We
> already did that on Windows, but it's needed on other platforms too when
> LC_CTYPE=C. With other locales, we enforce (or trust) that the codeset of
> the locale matches the server encoding so we don't need to bind it
> explicitly. It should do no harm in that case either, but I don't have
> full faith in the PG encoding -> OS codeset mapping table yet. Per recent
> discussion on pgsql-hackers.

% CFLAGS=-O0 ./configure  --enable-depend --enable-cassert --enable-debug 
--disable-coverage
% gmake
.....
utils/init/postinit.o(.text+0x697): In function `CheckMyDatabase':
/spool/home/teodor/pgsql/src/backend/utils/init/postinit.c:269: undefined 
reference to `textdomain'
gmake[2]: *** [postgres] Ошибка 1
gmake[2]: Leaving directory `/spool/home/teodor/pgsql/src/backend'
gmake[1]: *** [all] Ошибка 2
gmake[1]: Leaving directory `/spool/home/teodor/pgsql/src'
gmake: *** [all] Ошибка 2


May be call of  pg_bind_textdomain_codeset(textdomain(NULL)); should be wrapped 
by ENABLE_NLS?

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


Re: [COMMITTERS] pgsql: Tell gettext which codeset to use by calling

От
Heikki Linnakangas
Дата:
Teodor Sigaev wrote:
> May be call of  pg_bind_textdomain_codeset(textdomain(NULL)); should be 
> wrapped by ENABLE_NLS?

Yep, fixed. Thanks.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com