Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.1, 10.0
-
Fix Version/s: 10.0
-
Component/s: Character Sets
-
Labels:None
Description
add_collation calls cs_copy_data for not compiled character sets.
This calls init_state_maps, which calls my_mbcharlen, which requires the cset member to be defined.
--- a/mysys/charset.c +++ b/mysys/charset.c @@ -153,6 +153,8 @@ static int cs_copy_data(struct charset_info_st *to, CHARSET_INFO *from) MY_CS_CTYPE_TABLE_SIZE, MYF(MY_WME)))) goto err; + if (!to->cset) + simple_cs_init_functions(to); if (init_state_maps(to)) goto err; }
Gliffy Diagrams
Attachments
Issue Links
- blocks
-
MDEV-8424 Add latin9 support
-
- Open
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Sample charset definition for charsets/Index.xml to reproduce the segmentation fault: