Bug #83618 SDI filenames are incorrect for table names containing multibyte characters
Submitted: 31 Oct 2016 9:18 Modified: 7 Nov 2016 15:24
Reporter: Dyre Tjeldvoll Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: DDL Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[31 Oct 2016 9:18] Dyre Tjeldvoll
Description:
Creating a table with a name containing multibyte characters results in an SDI file name where all characters after the first mb char has been omitted.

How to repeat:
let $MYSQLD_DATADIR = `select @@datadir`;
CREATE TABLE tæøå(i INT) ENGINE MYISAM;
--list_files $MYSQLD_DATADIR/test

Suggested fix:
Make sure that char values are cast to unsigned char before being passed to my_mbcharlen(CHARSET_INFO*, uint).
[7 Nov 2016 15:24] Paul DuBois
Posted by developer:
 
Fixed in 8.0.1.

No user-visible changes. No changelog entry needed.