1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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:
unknown
2003-12-06 19:05:26 +01:00
parent c135ce0255
commit 2e82008bac
8 changed files with 9 additions and 10 deletions

View File

@ -191,7 +191,7 @@ static int ismbchar_sjis(CHARSET_INFO *cs __attribute__((unused)),
static int mbcharlen_sjis(CHARSET_INFO *cs __attribute__((unused)),uint c)
{
return (issjishead((uchar) c) ? 2: 0);
return (issjishead((uchar) c) ? 2 : 1);
}