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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy