Re: [HACKERS] encoding name "SHIFT_JIS" is absent in chklocale.c

2013-12-14 Thread Tatsuo Ishii
> 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 (enc

[HACKERS] encoding name "SHIFT_JIS" is absent in chklocale.c

2013-12-13 Thread Tatsuo Ishii
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 c