mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Fix Karel's patch. Suggested by Eiji Tokuya
This commit is contained in:
parent
227767112c
commit
f25ed23c57
@ -71,6 +71,7 @@ unsigned char *
|
|||||||
check_client_encoding(unsigned char *str)
|
check_client_encoding(unsigned char *str)
|
||||||
{
|
{
|
||||||
if (strstr(str, "%27SJIS%27") ||
|
if (strstr(str, "%27SJIS%27") ||
|
||||||
|
strstr(str, "%27Shift_JIS%27") ||
|
||||||
strstr(str, "'SJIS'") ||
|
strstr(str, "'SJIS'") ||
|
||||||
strstr(str, "'sjis'") ||
|
strstr(str, "'sjis'") ||
|
||||||
strstr(str, "'Shift_JIS'"))
|
strstr(str, "'Shift_JIS'"))
|
||||||
@ -79,8 +80,9 @@ check_client_encoding(unsigned char *str)
|
|||||||
return ("SJIS");
|
return ("SJIS");
|
||||||
}
|
}
|
||||||
if (strstr(str, "%27BIG5%27") ||
|
if (strstr(str, "%27BIG5%27") ||
|
||||||
|
strstr(str, "%27Big5%27") ||
|
||||||
strstr(str, "'BIG5'") ||
|
strstr(str, "'BIG5'") ||
|
||||||
strstr(str, "'big5'")
|
strstr(str, "'big5'") ||
|
||||||
strstr(str, "'Big5'"))
|
strstr(str, "'Big5'"))
|
||||||
{
|
{
|
||||||
multibyte_client_encoding = BIG5;
|
multibyte_client_encoding = BIG5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user