BUG #1328: psql don't accept some valid PGCLIENTENCODING values - Mailing list pgsql-bugs

From PostgreSQL Bugs List
Subject BUG #1328: psql don't accept some valid PGCLIENTENCODING values
Date
Msg-id 20041124114127.8FEFE738660@www.postgresql.com
Whole thread Raw
Responses Re: BUG #1328: psql don't accept some valid PGCLIENTENCODING values
Re: BUG #1328: psql don't accept some valid PGCLIENTENCODING values
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1328
Logged by:          kaaos

Email address:      kaaos@land.ru

PostgreSQL version: 8.0 Beta

Operating system:   Linux kaaos 2.6.9 #3 Tue Nov 23 13:12:08 MSK 2004 i686
Intel(R) Celeron(R) CPU 1.70GHz GenuineIntel GNU/Linux

Description:        psql don't accept some valid PGCLIENTENCODING values

Details:

Hello!
First of all, sorry for my English :(.

The problem:
With PGCLIENTENCODING=KOI8 and server encoding UNICODE
psql do not starts and print this message:

  psql: FATAL:  invalid value for parameter "client_encoding": "KOI8"

But, if I unset PGCLIENTENCODING, and in psql enter:

  template1=# \encoding KOI8

then psql accept client encoding:

  template1=# \encoding
  KOI8

  template1=# show client_encoding;
   client_encoding
  -----------------
   KOI8
  (1 row)


'select version()' output: PostgreSQL 8.0.0beta5
 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.3

Thank you.

pgsql-bugs by date:

Previous
From: Kent Tong
Date:
Subject: Re: equal operator fails on two identical strings if initdb
Next
From: Peter Eisentraut
Date:
Subject: Re: equal operator fails on two identical strings if initdb