[MDEV-19750] mysql command wrong encoding Created: 2019-06-13 Updated: 2020-08-25 Resolved: 2019-06-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Scripts & Clients |
| Affects Version/s: | 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.27, 10.3.17, 10.4.7 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
mysql console command doesn't detect console encoding like it was before 10.2. console client charset can then be wrong Example on windows that default to cp850:
good results would have been |
| Comments |
| Comment by Anel Husakovic [ 2019-06-17 ] |
|
Hi wlad |
| Comment by Vladislav Vaintroub [ 2019-06-17 ] |
|
Not exactly same way that is in PR . Unfortunately, the auto is broken in C/C on Windows, for the console, since it does use GetACP(), rather that GetConsoleCP(). Those are 2 different things. There is no "os default encoding" on Windows, there is one for console , and another one for GUI, on historical reasons, and georg chose the one for GUI applications. georg also refused to fix it in C/C |