projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45d0c1b
)
Add "SHIFT_JIS" as an accepted encoding name for locale checking.
author
Tatsuo Ishii
<
[email protected]
>
Sun, 15 Dec 2013 01:33:06 +0000
(10:33 +0900)
committer
Tatsuo Ishii
<
[email protected]
>
Sun, 15 Dec 2013 02:11:11 +0000
(11:11 +0900)
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.
src/port/chklocale.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/chklocale.c
b/src/port/chklocale.c
index 864071d05e6c389baca2fd885c41ef7ea36807d5..58ed9e2813ca99c67b0315987d4af1627ad0ab6b 100644
(file)
--- a/
src/port/chklocale.c
+++ b/
src/port/chklocale.c
@@
-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"},