[MDEV-29004] Linux client doesn't accept non-ascii characters with default-character-set=utf8 Created: 2022-07-01 Updated: 2022-07-11 Resolved: 2022-07-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Scripts & Clients |
| Affects Version/s: | 10.8, 10.9 |
| Fix Version/s: | 10.3.36, 10.4.26, 10.5.17, 10.6.9, 10.7.5, 10.8.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Gabriel Barros | Assignee: | Sergei Golubchik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
|
||
| Issue Links: |
|
||||||||
| Description |
|
Run mysql -p --default-character-set=utf8 or mysql -p --default-character-set=utf8mb4 or set: [mysql] — When you type SELECT "é" AS letter; at the prompt of the command line interface of the MariaDB client, the letter with an accent will not be echoed at the command line and the result of the command will be an empty field instead of a field containing the letter "é", as if the next command was issued: SELECT "" AS letter; As a workaround, you send letters with accents through a pipeline to the mysql client, typing at the shell prompt: echo 'SELECT "é" AS letter;' | mysql -p -t --default-character-set=utf8mb4 According to the issues below [1][2], the bug may be related to the EditLine wrapper (libedit). I have noticed this bug with MariaDB 10.8 and 10.9 on Ubuntu 22.04. Everything worked perfectly with MariaDB 10.5 on Ubuntu 20.04. Tested with:
Related MySQL issues: |