1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

fixed bug with locales in libedit

configure.in:
  fixed bug with external libedit
This commit is contained in:
unknown
2003-04-06 20:14:36 -04:00
parent 9a4258b4d4
commit 3aa5599774
4 changed files with 140 additions and 133 deletions

View File

@@ -40,6 +40,10 @@
#include <signal.h>
#include <violite.h>
#if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
#include <locale.h>
#endif
const char *VER= "13.5";
/* Don't try to make a nice table if the data is too big */
@@ -1111,6 +1115,9 @@ static void initialize_readline (char *name)
rl_attempted_completion_function= (rl_completion_func_t*)&new_mysql_completion;
rl_completion_entry_function= (rl_compentry_func_t*)&no_completion;
#elif defined(USE_LIBEDIT_INTERFACE)
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL,""); /* so as libedit use isprint */
#endif
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
rl_completion_entry_function= (CPFunction*)&no_completion;
#else