diff options
author | unknown <serg@serg.mysql.com> | 2002-10-14 11:36:48 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-10-14 11:36:48 +0000 |
commit | 65c4fdc00797b16a56f00d5b0b36b54265868b6f (patch) | |
tree | 50e53348aa9b2bb4539eb9061d6dbaf5b3bb646f /tools | |
parent | 228bfb05e31363775fac59fdc9ef8e2041183f08 (diff) | |
parent | db85094bc5386b58ff0b5fa93adab05b12eb9e16 (diff) | |
download | mariadb-git-65c4fdc00797b16a56f00d5b0b36b54265868b6f.tar.gz |
merged
BitKeeper/etc/logging_ok:
auto-union
configure.in:
Auto merged
libmysqld/Makefile.am:
Auto merged
myisam/Makefile.am:
Auto merged
myisam/mi_check.c:
Auto merged
myisam/myisampack.c:
Auto merged
mysql-test/r/fulltext.result:
Auto merged
mysys/Makefile.am:
Auto merged
sql/Makefile.am:
Auto merged
sql/sql_delete.cc:
Auto merged
sql/sql_update.cc:
Auto merged
strings/Makefile.am:
Auto merged
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mysqlmanager.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index e6fab63c5b3..6a246f096c8 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -428,8 +428,8 @@ static int exec_line(struct manager_thd* thd,char* buf,char* buf_end) { char* p=buf; struct manager_cmd* cmd; - for (;p<buf_end && !isspace(*p);p++) - *p=tolower(*p); + for (;p<buf_end && !my_isspace(system_charset_info,*p);p++) + *p=my_tolower(system_charset_info,*p); log_info("Command '%s'", buf); if (!(cmd=lookup_cmd(buf,(int)(p-buf)))) { @@ -439,7 +439,7 @@ static int exec_line(struct manager_thd* thd,char* buf,char* buf_end) thd->fatal=1; return 1; } - for (;p<buf_end && isspace(*p);p++); + for (;p<buf_end && my_isspace(system_charset_info,*p);p++); return cmd->handler_func(thd,p,buf_end); } @@ -716,7 +716,7 @@ HANDLE_DECL(handle_query) int num_fields,i,ident_len; char* ident,*query; query=ident=args_start; - while (!isspace(*query)) + while (!my_isspace(system_charset_info,*query)) query++; if (query == ident) { @@ -724,7 +724,7 @@ HANDLE_DECL(handle_query) goto err; } ident_len=(int)(query-ident); - while (query<args_end && isspace(*query)) + while (query<args_end && my_isspace(system_charset_info,*query)) query++; if (query == args_end) { @@ -1000,7 +1000,7 @@ static int authenticate(struct manager_thd* thd) for (buf=thd->cmd_buf,p=thd->user,p_end=p+MAX_USER_NAME; buf<buf_end && (c=*buf) && p<p_end; buf++,p++) { - if (isspace(c)) + if (my_isspace(system_charset_info,c)) { *p=0; break; @@ -1013,7 +1013,7 @@ static int authenticate(struct manager_thd* thd) if (!(u=(struct manager_user*)hash_search(&user_hash,thd->user, (uint)(p-thd->user)))) return 1; - for (;isspace(*buf) && buf<buf_end;buf++) /* empty */; + for (;my_isspace(system_charset_info,*buf) && buf<buf_end;buf++) /* empty */; my_MD5Init(&context); my_MD5Update(&context,(uchar*) buf,(uint)(buf_end-buf)); @@ -1582,9 +1582,9 @@ static void manager_exec_free(void* e) static int hex_val(char c) { - if (isdigit(c)) + if (my_isdigit(system_charset_info,c)) return c-'0'; - c=tolower(c); + c=my_tolower(system_charset_info,c); return c-'a'+10; } @@ -1641,7 +1641,8 @@ static void init_user_hash() FILE* f; char buf[80]; int line_num=1; - if (hash_init(&user_hash,1024,0,0,get_user_key,manager_user_free,MYF(0))) + if (hash_init(&user_hash,system_charset_info,1024,0,0, + get_user_key,manager_user_free,MYF(0))) die("Could not initialize user hash"); if (!(f=my_fopen(manager_pw_file, O_RDONLY | O_BINARY, MYF(MY_WME)))) { @@ -1687,7 +1688,8 @@ static void init_pid_file() static void init_globals() { pthread_attr_t thr_attr; - if (hash_init(&exec_hash,1024,0,0,get_exec_key,manager_exec_free,MYF(0))) + if (hash_init(&exec_hash,system_charset_info,1024,0,0, + get_exec_key,manager_exec_free,MYF(0))) die("Exec hash initialization failed"); if (!one_thread) { |