mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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()
This commit is contained in:
@ -401,7 +401,7 @@ static int ismbchar_big5(CHARSET_INFO *cs __attribute__((unused)),
|
||||
|
||||
static int mbcharlen_big5(CHARSET_INFO *cs __attribute__((unused)), uint c)
|
||||
{
|
||||
return (isbig5head(c)? 2: 0);
|
||||
return (isbig5head(c)? 2 : 1);
|
||||
}
|
||||
|
||||
/* page 0 0xA140-0xC7FC */
|
||||
|
Reference in New Issue
Block a user