current breakage with PGCLIENTENCODING - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject current breakage with PGCLIENTENCODING
Date
Msg-id 20030427.114914.74740952.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: current breakage with PGCLIENTENCODING  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
It seems current does not handle PGCLIENTENCODING environment variable
correctly.

$ PGCLIENTENCODING=SJIS psql test
Welcome to psql 7.4devel, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms      \h for help with SQL commands      \? for help on internal slash commands
    \g or terminate with semicolon to execute query      \q to quit
 

Pager is off.
test=# \encoding
SJIS
test=# show client_encoding;client_encoding 
-----------------SJIS
(1 row)

test=# select pg_client_encoding();pg_client_encoding 
--------------------EUC_JP
(1 row)

As you can see, the result of "show client_encoding;" and "select
pg_client_encoding();" do not match. I'm sure that they do match at
least in the 2003/03/24 version.

Any idea?
--
Tatsuo Ishii



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: STABLE functions
Next
From: Sean Chittenden
Date:
Subject: Re: [EXAMPLE] Overly zealous security of schemas...