summaryrefslogtreecommitdiff
path: root/mysys/charset.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-12-06 19:05:26 +0100
committerunknown <serg@serg.mylan>2003-12-06 19:05:26 +0100
commit2e82008bacf85acafa1d657616690e442f997686 (patch)
treef9c88e2f87875a8d63da6a70bd2a56b9dca57fe4 /mysys/charset.c
parentc135ce0255f66af4354e5b4abb6dfb49207fb7f4 (diff)
downloadmariadb-git-2e82008bacf85acafa1d657616690e442f997686.tar.gz
fix for my_mbcharlen(charset, c) to return 1 for single-byte characters
(isn't it obvious ?) mysys/charset.c: all charsets support my_mbcharlen - no need to protect it with use_mb() sql/sql_load.cc: all charsets support my_mbcharlen - no need to protect it with use_mb()
Diffstat (limited to 'mysys/charset.c')
-rw-r--r--mysys/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index e97ac0675d6..4111dd246cb 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -82,7 +82,7 @@ static void init_state_maps(CHARSET_INFO *cs)
else if (my_isdigit(cs,i))
state_map[i]=(uchar) MY_LEX_NUMBER_IDENT;
#if defined(USE_MB) && defined(USE_MB_IDENT)
- else if (use_mb(cs) && (my_mbcharlen(cs, i)>1))
+ else if (my_mbcharlen(cs, i)>1)
state_map[i]=(uchar) MY_LEX_IDENT;
#endif
else if (!my_isgraph(cs,i))