summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2001-09-06 05:01:38 +0000
committerTatsuo Ishii <ishii@postgresql.org>2001-09-06 05:01:38 +0000
commitf25ed23c571dfd904620b79f9f7b1812085b3d12 (patch)
treeafbdd115152aa446fba3c0595c3cae2b0a6405ce /src
parent227767112c3d3a6562b27e0a0da064d8b8ca1ebf (diff)
Fix Karel's patch. Suggested by Eiji Tokuya
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/odbc/multibyte.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c
index dec9a33a2e8..abc6b3d6eb4 100644
--- a/src/interfaces/odbc/multibyte.c
+++ b/src/interfaces/odbc/multibyte.c
@@ -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;