mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 12:01:50 +02:00
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.
This commit is contained in:
parent
1b4f7f93b4
commit
1f0626ee40
@ -162,6 +162,7 @@ static const struct encoding_match encoding_match_list[] = {
|
||||
{PG_SJIS, "SJIS"},
|
||||
{PG_SJIS, "PCK"},
|
||||
{PG_SJIS, "CP932"},
|
||||
{PG_SJIS, "SHIFT_JIS"},
|
||||
|
||||
{PG_BIG5, "BIG5"},
|
||||
{PG_BIG5, "BIG5HKSCS"},
|
||||
|
Loading…
Reference in New Issue
Block a user