Content-Length: 253573 | pFad | http://github.com/postgrespro/postgres/commit/1f0626ee40f2decd93ca96c6f9e9a9b5edff57ba

AC Add "SHIFT_JIS" as an accepted encoding name for locale checking. · postgrespro/postgres@1f0626e · GitHub
Skip to content

Commit 1f0626e

Browse files
committed
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.
1 parent 1b4f7f9 commit 1f0626e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/port/chklocale.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ static const struct encoding_match encoding_match_list[] = {
162162
{PG_SJIS, "SJIS"},
163163
{PG_SJIS, "PCK"},
164164
{PG_SJIS, "CP932"},
165+
{PG_SJIS, "SHIFT_JIS"},
165166

166167
{PG_BIG5, "BIG5"},
167168
{PG_BIG5, "BIG5HKSCS"},

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1f0626ee40f2decd93ca96c6f9e9a9b5edff57ba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy