postgres.git / summary / log / commit / refs

commit    7016d970d0f1f3a59249a28c6148158bc47c6bd8
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Sun Dec 15 01:33:06 2013 +0000
First released in: 9.4.0, 8.4.20, 9.0.16, 9.1.12, 9.2.7, 9.3.3

    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.


src/port/chklocale.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/port/chklocale.c b/src/port/chklocale.c index d26b86518d3..3e313fb9169 100644 --- 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"}, [parent: 0a63f7d97777]