Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10262

ucs2_thai_520_w2: wrong implicit weights on the secondary level

    XMLWordPrintable

Details

    Description

      The recently added xxx_thai_520_w2 collations return a wrong implicit weights on the secondary level.
      Example:

      SELECT HEX(WEIGHT_STRING(_ucs2 0xF001 COLLATE ucs2_thai_520_w2));
      

      +-----------------------------------------------------------+
      | HEX(WEIGHT_STRING(_ucs2 0xF001 COLLATE ucs2_thai_520_w2)) |
      +-----------------------------------------------------------+
      | FBC1F001FBC1F001                                          |
      +-----------------------------------------------------------+
      1 row in set (0.00 sec)
      

      Notice, the character 0xF001 is not in DUCET, it's weight is generated algorithmically.
      It's primary weight is correctly calculated as FBC1F001.
      It's secondary weight must be 0020.
      The expected result must be: FBC1F0010020

      The secondary weight is calculated as FBC1F001 rather than 0020.

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.