• unknown's avatar
    Bug#28916 LDML doesn't work for utf8 · 4e4cd276
    unknown authored
    and is not described in the manual
    - Adding missing initialization for utf8 collations
    - Minor code clean-ups: renaming variables,
      moving code into a new separate function.
    - Adding test, to check that both ucs2 and utf8 user
      defined collations work (ucs2_test_ci and utf8_test_ci)
    - Adding Vietnamese collation as a complex user defined
      collation example.
    
    
    include/m_ctype.h:
      Renaming variable names to match collation names (for convenience).
    mysys/charset-def.c:
      - Removing redundant declarations for variables declared in m_ctype.h
      - Renaming variable names to match collation names (for convenience).
    mysys/charset.c:
      - Renaming "new" to "newcs", to avoid using C reserved word as a variable name
      - Moving UCA initialization code into a separate function
      - The bug fix itself: adding initialization of utf8 collations
    strings/ctype-uca.c:
      Renaming variable names to match collation names (for convenience).
    strings/ctype.c:
      Increasing buffer size to fit tailoring for languages
      with complex rules (e.g. Vietnamese).
    mysql-test/r/ctype_ldml.result:
      Adding test case
    mysql-test/std_data/Index.xml:
      Adding Index.xml example with user defined collations.
    mysql-test/t/ctype_ldml-master.opt:
      Adding OPT file for the test case,
      to use the example Index.xml file.
    mysql-test/t/ctype_ldml.test:
      Adding test case
    4e4cd276
Index.xml 1.88 KB