summaryrefslogtreecommitdiff
path: root/strings/ctype-latin1.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-20 15:53:48 +0200
committerunknown <serg@serg.mylan>2003-10-20 15:53:48 +0200
commit228f4a43a353e9e7c56e1a617749fc9c0e875f6d (patch)
treeff0f9b71c43cfc4ed4e2fa91a8398677dae7377a /strings/ctype-latin1.c
parent4a253d2af04869a3e28831b71ddbc5d78279fe5e (diff)
downloadmariadb-git-228f4a43a353e9e7c56e1a617749fc9c0e875f6d.tar.gz
FULLTEXT: correct charset support (UTF included, UCS2 - not)
code cleanup include/m_ctype.h: my_mbcharlen_8bit() { return 1 } mysql-test/r/fulltext.result: fulltext on UTF mysql-test/t/fulltext.test: fulltext on UTF sql/item_cmpfunc.h: cleanup sql/sql_table.cc: FULLTEXT: UCS2 is not allowed sql/sql_yacc.yy: FULLTEXT: code cleanup strings/ctype-bin.c: my_mbcharlen_8bit() { return 1 } strings/ctype-latin1.c: my_mbcharlen_8bit() { return 1 } strings/ctype-simple.c: my_mbcharlen_8bit() { return 1 } strings/ctype-tis620.c: my_mbcharlen_8bit() { return 1 } strings/ctype-utf8.c: hack: (to be fixed properly later) all multi-byte sequences are considered isalpha() now
Diffstat (limited to 'strings/ctype-latin1.c')
-rw-r--r--strings/ctype-latin1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-latin1.c b/strings/ctype-latin1.c
index a8a5329f844..15798abb85b 100644
--- a/strings/ctype-latin1.c
+++ b/strings/ctype-latin1.c
@@ -170,14 +170,14 @@ int my_wc_mb_latin1(CHARSET_INFO *cs __attribute__((unused)),
{
if (str >= end)
return MY_CS_TOOSMALL;
-
+
return ((wc < 256) && ((str[0]=uni_latin1[wc]) || (!wc))) ? 1 : MY_CS_ILUNI;
}
static MY_CHARSET_HANDLER my_charset_handler=
{
NULL,
- NULL,
+ my_mbcharlen_8bit,
my_numchars_8bit,
my_charpos_8bit,
my_lengthsp_8bit,