summaryrefslogtreecommitdiff
path: root/strings/ctype-tis620.c
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-03-23 14:14:32 +0400
committerunknown <bar@mysql.com>2006-03-23 14:14:32 +0400
commit86f3d2d08a3c46830d3c555d13171dcd53ac8039 (patch)
tree53884b9ab5ed87409c40a2d1bb53db98dfacc7ef /strings/ctype-tis620.c
parentc7df2c6a5819fe942ff68f90fe53a8e338ab9db6 (diff)
parent1b58717cd85ee6fcc461c919075106a7d4ebd83b (diff)
downloadmariadb-git-86f3d2d08a3c46830d3c555d13171dcd53ac8039.tar.gz
Merge mysql.com:/usr/home/bar/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.1-new mysql-test/r/ctype_ujis.result: Auto merged mysql-test/t/ctype_ujis.test: Auto merged strings/ctype-big5.c: Auto merged strings/ctype-bin.c: Auto merged strings/ctype-cp932.c: Auto merged strings/ctype-euc_kr.c: Auto merged strings/ctype-eucjpms.c: Auto merged strings/ctype-gb2312.c: Auto merged strings/ctype-gbk.c: Auto merged strings/ctype-latin1.c: Auto merged strings/ctype-simple.c: Auto merged strings/ctype-sjis.c: Auto merged strings/ctype-tis620.c: Auto merged strings/ctype-ucs2.c: Auto merged strings/ctype-ujis.c: Auto merged strings/ctype-utf8.c: Auto merged include/m_ctype.h: After merge fix.
Diffstat (limited to 'strings/ctype-tis620.c')
-rw-r--r--strings/ctype-tis620.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-tis620.c b/strings/ctype-tis620.c
index 2ae0142d510..98cc41dd26f 100644
--- a/strings/ctype-tis620.c
+++ b/strings/ctype-tis620.c
@@ -827,10 +827,10 @@ int my_mb_wc_tis620(CHARSET_INFO *cs __attribute__((unused)),
const unsigned char *end __attribute__((unused)))
{
if (str >= end)
- return MY_CS_TOOFEW(0);
+ return MY_CS_TOOSMALL;
*wc=cs_to_uni[*str];
- return (!wc[0] && str[0]) ? MY_CS_ILSEQ : 1;
+ return (!wc[0] && str[0]) ? -1 : 1;
}
static