Re: [HACKERS] libpq+MB/putenv(), getenv() clean up

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: [HACKERS] libpq+MB/putenv(), getenv() clean up
Дата
Msg-id 20000115143131E.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: [HACKERS] libpq+MB/putenv(), getenv() clean up  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Список pgsql-hackers
> Whatever you do, please do not set any environment variables from within
> programs. It's evil. 

Of course it's in my plan. I will eliminate them.

> > (3) Add a new function PQclientencoding() to extract client_encoding
> > from PGconn.
> 
> How about PQencoding()?

Humm... someday we may have PQdatabasencoding().  So I think it's
better to have "client" on it not to be confused.

> How about PQmblen(character, encoding)? Then you could call it PQmblen(c,
> PQclientencoding(conn)) or PQmblen(c, other_encoding). That makes it more
> general.

Good idea. Agreed.
--
Tatsuo Ishii


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

Предыдущее
От: Don Baccus
Дата:
Сообщение: Re: [HACKERS] Re: Informix and OUTER join syntax
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: Peter opens a can of worms