mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/my/mysql-4.1 sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged strings/ctype-big5.c: Auto merged strings/ctype-euc_kr.c: Auto merged strings/ctype-gb2312.c: Auto merged strings/ctype-gbk.c: Auto merged strings/ctype-sjis.c: Auto merged strings/ctype-ujis.c: Auto merged
This commit is contained in:
@ -6183,16 +6183,16 @@ my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
if (s >= e)
|
||||
return MY_CS_TOOSMALL;
|
||||
|
||||
if(wc<0x80)
|
||||
if ((int) wc < 0x80)
|
||||
{
|
||||
s[0]=wc;
|
||||
s[0]= (uchar) wc;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(!(code=func_uni_big5_onechar(wc)))
|
||||
if (!(code=func_uni_big5_onechar(wc)))
|
||||
return MY_CS_ILUNI;
|
||||
|
||||
if(s+2>e)
|
||||
if (s+2>e)
|
||||
return MY_CS_TOOSMALL;
|
||||
|
||||
s[0]=code>>8;
|
||||
@ -6201,6 +6201,7 @@ my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
my_mb_wc_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
my_wc_t *pwc,const uchar *s,const uchar *e)
|
||||
@ -6211,16 +6212,16 @@ my_mb_wc_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
if (s >= e)
|
||||
return MY_CS_TOOFEW(0);
|
||||
|
||||
if(hi<0x80)
|
||||
if (hi<0x80)
|
||||
{
|
||||
pwc[0]=hi;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(s+2>e)
|
||||
if (s+2>e)
|
||||
return MY_CS_TOOFEW(0);
|
||||
|
||||
if(!(pwc[0]=func_big5_uni_onechar((hi<<8)+s[1])))
|
||||
if (!(pwc[0]=func_big5_uni_onechar((hi<<8)+s[1])))
|
||||
return MY_CS_ILSEQ;
|
||||
|
||||
return 2;
|
||||
|
Reference in New Issue
Block a user