]> granicus.if.org Git - postgresql/commitdiff
Fix Karel's patch. Suggested by Eiji Tokuya
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 6 Sep 2001 05:01:38 +0000 (05:01 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 6 Sep 2001 05:01:38 +0000 (05:01 +0000)
src/interfaces/odbc/multibyte.c

index dec9a33a2e8b453631e161f9d7cc057f69397408..abc6b3d6eb4c67b47b8f3e721210bdedc24afa5a 100644 (file)
@@ -71,6 +71,7 @@ unsigned char *
 check_client_encoding(unsigned char *str)
 {
        if (strstr(str, "%27SJIS%27") || 
+           strstr(str, "%27Shift_JIS%27") || 
            strstr(str, "'SJIS'") || 
            strstr(str, "'sjis'") ||
            strstr(str, "'Shift_JIS'"))
@@ -79,8 +80,9 @@ check_client_encoding(unsigned char *str)
                return ("SJIS");
        }
        if (strstr(str, "%27BIG5%27") || 
+           strstr(str, "%27Big5%27") ||
            strstr(str, "'BIG5'") || 
-           strstr(str, "'big5'")
+           strstr(str, "'big5'") ||
            strstr(str, "'Big5'"))
        {
                multibyte_client_encoding = BIG5;