diff options
author | Alexander Barkov <bar@mysql.com> | 2009-10-21 17:59:47 +0500 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2009-10-21 17:59:47 +0500 |
commit | c15f970dc87b076279c27c7a0c9a592fa4e7b72e (patch) | |
tree | 9daa322eb14aa0cd7af60162e5b2b6c77446def6 /client/mysqladmin.cc | |
parent | d850a57c3b8f7759cb39b6daa65aceb28632cf26 (diff) | |
download | mariadb-git-c15f970dc87b076279c27c7a0c9a592fa4e7b72e.tar.gz |
WL#1349 Use operating system localization to send it as a default client character set
Diffstat (limited to 'client/mysqladmin.cc')
-rw-r--r-- | client/mysqladmin.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc index 2b93c149523..a3eee14e0d1 100644 --- a/client/mysqladmin.cc +++ b/client/mysqladmin.cc @@ -30,7 +30,7 @@ #define MAX_TRUNC_LENGTH 3 char *host= NULL, *user= 0, *opt_password= 0, - *default_charset= NULL; + *default_charset= (char*) MYSQL_AUTODETECT_CHARSET_NAME; char truncated_var_names[MAX_MYSQL_VAR][MAX_TRUNC_LENGTH]; char ex_var_names[MAX_MYSQL_VAR][FN_REFLEN]; ulonglong last_values[MAX_MYSQL_VAR]; @@ -348,8 +348,7 @@ int main(int argc,char *argv[]) if (shared_memory_base_name) mysql_options(&mysql,MYSQL_SHARED_MEMORY_BASE_NAME,shared_memory_base_name); #endif - if (default_charset) - mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, default_charset); + mysql_options(&mysql, MYSQL_SET_CHARSET_NAME, default_charset); error_flags= (myf)(opt_nobeep ? 0 : ME_BELL); if (sql_connect(&mysql, option_wait)) |