[MDEV-10262] ucs2_thai_520_w2: wrong implicit weights on the secondary level Created: 2016-06-21  Updated: 2016-06-21  Resolved: 2016-06-21

Status: Closed
Project: MariaDB Server
Component/s: Character Sets
Affects Version/s: 10.1.15
Fix Version/s: 10.1.15

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None


 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.


Generated at Thu Feb 08 07:40:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.