[MDEV-7661] Unexpected result for: CAST(0xHHHH AS CHAR CHARACTER SET xxx) for incorrect byte sequences Created: 2015-03-04 Updated: 2017-09-15 Resolved: 2015-03-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | None |
| Fix Version/s: | 10.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This result is wrong:
0xA341 is not a well formed gb2312 byte sequence.
0xA3 is a multi-byte head, but it is not followed by a valid multi-byte tails. Additionally, badly formed sequences are converted to something strange during
A341 was converted to "U+FF21 FULLWIDTH LATIN CAPITAL LETTER A", which is wrong. It seems A341 was erroneously taken as A3C1, which is the correct gb2312 for U+FF21. |