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

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: peter_e(at)gmx(dot)net, e99re41(at)DoCS(dot)UU(dot)SE
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] libpq+MB/putenv(), getenv() clean up
Date: 2000-01-15 05:31:31
Message-ID: 20000115143131E.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-01-15 05:39:25 Re: [HACKERS] Re: Peter opens a can of worms
Previous Message Don Baccus 2000-01-15 04:52:51 Re: [HACKERS] Re: Informix and OUTER join syntax