| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | encoding name "SHIFT_JIS" is absent in chklocale.c |
| Date: | 2013-12-14 02:35:05 |
| Message-ID: | 20131214.113505.467339429979746073.t-ishii@sraoss.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I got a complain from a user.
If current locale is SJIS, psql does not set client encoding to SJIS.
# localedef -f SHIFT_JIS -i ja_JP /usr/lib/locale/ja_JP.SJIS
$ export LANG=ja_JP.SJIS
$ psql
\encoding
SQL_ASCII <-- This should be SJIS
This is because the encoding map (encoding_match_list) in chklocale.c
is lacking the definition for SHIFT_JIS. Included is a proposed
patch. If there's no objection, I will commit it.
Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp
| Attachment | Content-Type | Size |
|---|---|---|
| shift_jis.patch | text/x-patch | 360 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gregory Smith | 2013-12-14 03:24:28 | Re: [v9.4] row level security |
| Previous Message | Tom Lane | 2013-12-14 00:06:50 | Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE |