Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8122e6f

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/localematch table (encoding_match_list) needs the entry. Otherwise clientencoding is set to SQL_ASCII.Back patch to all supported branches.
1 parent324577f commit8122e6f

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)

[8]ページ先頭

©2009-2025 Movatter.jp