Bug #2804 error messages don't use client charset
Submitted: 15 Feb 2004 8:15 Modified: 18 Mar 2004 22:53
Reporter: Jean-Claude Colson Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1.1-alpha-standard OS:MacOS (Mac OS X 10.3.2)
Assigned to: Assigned Account CPU Architecture:Any

[15 Feb 2004 8:15] Jean-Claude Colson
Description:
The ERROR in french is well displayed in latin1:
jc@eMac ~$ cat .my.cnf
[client]
password                = secret
[mysql]
default-character-set   = latin1
jc@eMac ~$ mysql   
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 934 to server version: 4.1.1-alpha-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SHOW TABLES LIKE '%';
ERROR 1046 (3D000): Aucune base n'a été sélectionnée
mysql> 

But in utf8:
ERROR 1046 (3D000): Aucune base n'a ?t? s?lectionn?e

(I have send this message in ISO-8859-1)

How to repeat:
jc@eMac ~$ cat .my.cnf 
[client]
password                = secret
[mysql]
default-character-set   = utf8
jc@eMac ~$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 932 to server version: 4.1.1-alpha-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SHOW TABLES LIKE '%';
ERROR 1046 (3D000): Aucune base n'a ?t? s?lectionn?e
mysql> 

Suggested fix:
Convert error messages to respect client's charset.
[18 Mar 2004 22:53] Alexander Barkov
We have already this bug report, so I'm closing
this report as "duplicate". We'll try to fix
this problem as soon as possible. Sorry for
inconvenience.

http://bugs.mysql.com/bug.php?id=1406