Add "SHIFT_JIS" as an accepted encoding name for locale checking.

Tatsuo Ishii <ishii@postgresql.org>

Commit: 1f0626ee40f2decd93ca96c6f9e9a9b5edff57ba
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2013-12-15T02:09:05Z
Releases: 9.4.0
Add "SHIFT_JIS" as an accepted encoding name for locale checking.

When locale is "ja_JP.SJIS", nl_langinfo(CODESET) returns "SHIFT_JIS"
on some platforms, at least on RedHat Linux. So the encoding/locale
match table (encoding_match_list) needs the entry. Otherwise client
encoding is set to SQL_ASCII.

Back patch to all supported branches.

Files

PathChange+/−
src/port/chklocale.c modified +1 −0