Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3aa55997
Commit
3aa55997
authored
Apr 06, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug with locales in libedit
configure.in: fixed bug with external libedit
parent
9a4258b4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
133 deletions
+140
-133
client/mysql.cc
client/mysql.cc
+7
-0
cmd-line-utils/libedit/map.c
cmd-line-utils/libedit/map.c
+129
-129
cmd-line-utils/libedit/refresh.c
cmd-line-utils/libedit/refresh.c
+3
-3
configure.in
configure.in
+1
-1
No files found.
client/mysql.cc
View file @
3aa55997
...
@@ -40,6 +40,10 @@
...
@@ -40,6 +40,10 @@
#include <signal.h>
#include <signal.h>
#include <violite.h>
#include <violite.h>
#if defined(USE_LIBEDIT_INTERFACE) && defined(HAVE_LOCALE_H)
#include <locale.h>
#endif
const
char
*
VER
=
"13.5"
;
const
char
*
VER
=
"13.5"
;
/* Don't try to make a nice table if the data is too big */
/* Don't try to make a nice table if the data is too big */
...
@@ -1111,6 +1115,9 @@ static void initialize_readline (char *name)
...
@@ -1111,6 +1115,9 @@ static void initialize_readline (char *name)
rl_attempted_completion_function
=
(
rl_completion_func_t
*
)
&
new_mysql_completion
;
rl_attempted_completion_function
=
(
rl_completion_func_t
*
)
&
new_mysql_completion
;
rl_completion_entry_function
=
(
rl_compentry_func_t
*
)
&
no_completion
;
rl_completion_entry_function
=
(
rl_compentry_func_t
*
)
&
no_completion
;
#elif defined(USE_LIBEDIT_INTERFACE)
#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_attempted_completion_function
=
(
CPPFunction
*
)
&
new_mysql_completion
;
rl_completion_entry_function
=
(
CPFunction
*
)
&
no_completion
;
rl_completion_entry_function
=
(
CPFunction
*
)
&
no_completion
;
#else
#else
...
...
cmd-line-utils/libedit/map.c
View file @
3aa55997
...
@@ -184,135 +184,135 @@ private const el_action_t el_map_emacs[] = {
...
@@ -184,135 +184,135 @@ private const el_action_t el_map_emacs[] = {
/* 124 */
ED_INSERT
,
/* | */
/* 124 */
ED_INSERT
,
/* | */
/* 125 */
ED_INSERT
,
/* } */
/* 125 */
ED_INSERT
,
/* } */
/* 126 */
ED_INSERT
,
/* ~ */
/* 126 */
ED_INSERT
,
/* ~ */
/* 127 */
ED_
INSERT
,
/* ^? */
/* 127 */
ED_
DELETE_PREV_CHAR
,
/* ^? */
/* 128 */
ED_
INSERT
,
/* M-^@ */
/* 128 */
ED_
UNASSIGNED
,
/* M-^@ */
/* 129 */
ED_
INSERT
,
/* M-^A */
/* 129 */
ED_
UNASSIGNED
,
/* M-^A */
/* 130 */
ED_
INSERT
,
/* M-^B */
/* 130 */
ED_
UNASSIGNED
,
/* M-^B */
/* 131 */
ED_
INSERT
,
/* M-^C */
/* 131 */
ED_
UNASSIGNED
,
/* M-^C */
/* 132 */
ED_
INSERT
,
/* M-^D */
/* 132 */
ED_
UNASSIGNED
,
/* M-^D */
/* 133 */
ED_
INSERT
,
/* M-^E */
/* 133 */
ED_
UNASSIGNED
,
/* M-^E */
/* 134 */
ED_
INSERT
,
/* M-^F */
/* 134 */
ED_
UNASSIGNED
,
/* M-^F */
/* 135 */
ED_
INSERT
,
/* M-^G */
/* 135 */
ED_
UNASSIGNED
,
/* M-^G */
/* 136 */
ED_
INSERT
,
/* M-^H */
/* 136 */
ED_
DELETE_PREV_WORD
,
/* M-^H */
/* 137 */
ED_
INSERT
,
/* M-^I */
/* 137 */
ED_
UNASSIGNED
,
/* M-^I */
/* 138 */
ED_
INSERT
,
/* M-^J */
/* 138 */
ED_
UNASSIGNED
,
/* M-^J */
/* 139 */
ED_
INSERT
,
/* M-^K */
/* 139 */
ED_
UNASSIGNED
,
/* M-^K */
/* 140 */
ED_
INSERT
,
/* M-^L */
/* 140 */
ED_
CLEAR_SCREEN
,
/* M-^L */
/* 141 */
ED_
INSERT
,
/* M-^M */
/* 141 */
ED_
UNASSIGNED
,
/* M-^M */
/* 142 */
ED_
INSERT
,
/* M-^N */
/* 142 */
ED_
UNASSIGNED
,
/* M-^N */
/* 143 */
ED_
INSERT
,
/* M-^O */
/* 143 */
ED_
UNASSIGNED
,
/* M-^O */
/* 144 */
ED_
INSERT
,
/* M-^P */
/* 144 */
ED_
UNASSIGNED
,
/* M-^P */
/* 145 */
ED_
INSERT
,
/* M-^Q */
/* 145 */
ED_
UNASSIGNED
,
/* M-^Q */
/* 146 */
ED_
INSERT
,
/* M-^R */
/* 146 */
ED_
UNASSIGNED
,
/* M-^R */
/* 147 */
ED_
INSERT
,
/* M-^S */
/* 147 */
ED_
UNASSIGNED
,
/* M-^S */
/* 148 */
ED_
INSERT
,
/* M-^T */
/* 148 */
ED_
UNASSIGNED
,
/* M-^T */
/* 149 */
ED_
INSERT
,
/* M-^U */
/* 149 */
ED_
UNASSIGNED
,
/* M-^U */
/* 150 */
ED_
INSERT
,
/* M-^V */
/* 150 */
ED_
UNASSIGNED
,
/* M-^V */
/* 151 */
ED_
INSERT
,
/* M-^W */
/* 151 */
ED_
UNASSIGNED
,
/* M-^W */
/* 152 */
ED_
INSERT
,
/* M-^X */
/* 152 */
ED_
UNASSIGNED
,
/* M-^X */
/* 153 */
ED_
INSERT
,
/* M-^Y */
/* 153 */
ED_
UNASSIGNED
,
/* M-^Y */
/* 154 */
ED_
INSERT
,
/* M-^Z */
/* 154 */
ED_
UNASSIGNED
,
/* M-^Z */
/* 155 */
ED_
INSERT
,
/* M-^[ */
/* 155 */
ED_
UNASSIGNED
,
/* M-^[ */
/* 156 */
ED_
INSERT
,
/* M-^\ */
/* 156 */
ED_
UNASSIGNED
,
/* M-^\ */
/* 157 */
ED_
INSERT
,
/* M-^] */
/* 157 */
ED_
UNASSIGNED
,
/* M-^] */
/* 158 */
ED_
INSERT
,
/* M-^^ */
/* 158 */
ED_
UNASSIGNED
,
/* M-^^ */
/* 159 */
E
D_INSERT
,
/* M-^_ */
/* 159 */
E
M_COPY_PREV_WORD
,
/* M-^_ */
/* 160 */
ED_
INSERT
,
/* M-SPACE */
/* 160 */
ED_
UNASSIGNED
,
/* M-SPACE */
/* 161 */
ED_
INSERT
,
/* M-! */
/* 161 */
ED_
UNASSIGNED
,
/* M-! */
/* 162 */
ED_
INSERT
,
/* M-" */
/* 162 */
ED_
UNASSIGNED
,
/* M-" */
/* 163 */
ED_
INSERT
,
/* M-# */
/* 163 */
ED_
UNASSIGNED
,
/* M-# */
/* 164 */
ED_
INSERT
,
/* M-$ */
/* 164 */
ED_
UNASSIGNED
,
/* M-$ */
/* 165 */
ED_
INSERT
,
/* M-% */
/* 165 */
ED_
UNASSIGNED
,
/* M-% */
/* 166 */
ED_
INSERT
,
/* M-& */
/* 166 */
ED_
UNASSIGNED
,
/* M-& */
/* 167 */
ED_
INSERT
,
/* M-' */
/* 167 */
ED_
UNASSIGNED
,
/* M-' */
/* 168 */
ED_
INSERT
,
/* M-( */
/* 168 */
ED_
UNASSIGNED
,
/* M-( */
/* 169 */
ED_
INSERT
,
/* M-) */
/* 169 */
ED_
UNASSIGNED
,
/* M-) */
/* 170 */
ED_
INSERT
,
/* M-* */
/* 170 */
ED_
UNASSIGNED
,
/* M-* */
/* 171 */
ED_
INSERT
,
/* M-+ */
/* 171 */
ED_
UNASSIGNED
,
/* M-+ */
/* 172 */
ED_
INSERT
,
/* M-, */
/* 172 */
ED_
UNASSIGNED
,
/* M-, */
/* 173 */
ED_
INSERT
,
/* M-- */
/* 173 */
ED_
UNASSIGNED
,
/* M-- */
/* 174 */
ED_
INSERT
,
/* M-. */
/* 174 */
ED_
UNASSIGNED
,
/* M-. */
/* 175 */
ED_
INSERT
,
/* M-/ */
/* 175 */
ED_
UNASSIGNED
,
/* M-/ */
/* 176 */
ED_
INSER
T
,
/* M-0 */
/* 176 */
ED_
ARGUMENT_DIGI
T
,
/* M-0 */
/* 177 */
ED_
INSER
T
,
/* M-1 */
/* 177 */
ED_
ARGUMENT_DIGI
T
,
/* M-1 */
/* 178 */
ED_
INSER
T
,
/* M-2 */
/* 178 */
ED_
ARGUMENT_DIGI
T
,
/* M-2 */
/* 179 */
ED_
INSER
T
,
/* M-3 */
/* 179 */
ED_
ARGUMENT_DIGI
T
,
/* M-3 */
/* 180 */
ED_
INSER
T
,
/* M-4 */
/* 180 */
ED_
ARGUMENT_DIGI
T
,
/* M-4 */
/* 181 */
ED_
INSER
T
,
/* M-5 */
/* 181 */
ED_
ARGUMENT_DIGI
T
,
/* M-5 */
/* 182 */
ED_
INSER
T
,
/* M-6 */
/* 182 */
ED_
ARGUMENT_DIGI
T
,
/* M-6 */
/* 183 */
ED_
INSER
T
,
/* M-7 */
/* 183 */
ED_
ARGUMENT_DIGI
T
,
/* M-7 */
/* 184 */
ED_
INSER
T
,
/* M-8 */
/* 184 */
ED_
ARGUMENT_DIGI
T
,
/* M-8 */
/* 185 */
ED_
INSER
T
,
/* M-9 */
/* 185 */
ED_
ARGUMENT_DIGI
T
,
/* M-9 */
/* 186 */
ED_
INSERT
,
/* M-: */
/* 186 */
ED_
UNASSIGNED
,
/* M-: */
/* 187 */
ED_
INSERT
,
/* M-; */
/* 187 */
ED_
UNASSIGNED
,
/* M-; */
/* 188 */
ED_
INSERT
,
/* M-< */
/* 188 */
ED_
UNASSIGNED
,
/* M-< */
/* 189 */
ED_
INSERT
,
/* M-= */
/* 189 */
ED_
UNASSIGNED
,
/* M-= */
/* 190 */
ED_
INSERT
,
/* M-> */
/* 190 */
ED_
UNASSIGNED
,
/* M-> */
/* 191 */
ED_
INSERT
,
/* M-? */
/* 191 */
ED_
UNASSIGNED
,
/* M-? */
/* 192 */
ED_
INSERT
,
/* M-@ */
/* 192 */
ED_
UNASSIGNED
,
/* M-@ */
/* 193 */
ED_
INSERT
,
/* M-A */
/* 193 */
ED_
UNASSIGNED
,
/* M-A */
/* 194 */
ED_
INSERT
,
/* M-B */
/* 194 */
ED_
PREV_WORD
,
/* M-B */
/* 195 */
E
D_INSERT
,
/* M-C */
/* 195 */
E
M_CAPITOL_CASE
,
/* M-C */
/* 196 */
E
D_INSERT
,
/* M-D */
/* 196 */
E
M_DELETE_NEXT_WORD
,
/* M-D */
/* 197 */
ED_
INSERT
,
/* M-E */
/* 197 */
ED_
UNASSIGNED
,
/* M-E */
/* 198 */
E
D_INSERT
,
/* M-F */
/* 198 */
E
M_NEXT_WORD
,
/* M-F */
/* 199 */
ED_
INSERT
,
/* M-G */
/* 199 */
ED_
UNASSIGNED
,
/* M-G */
/* 200 */
ED_
INSERT
,
/* M-H */
/* 200 */
ED_
UNASSIGNED
,
/* M-H */
/* 201 */
ED_
INSERT
,
/* M-I */
/* 201 */
ED_
UNASSIGNED
,
/* M-I */
/* 202 */
ED_
INSERT
,
/* M-J */
/* 202 */
ED_
UNASSIGNED
,
/* M-J */
/* 203 */
ED_
INSERT
,
/* M-K */
/* 203 */
ED_
UNASSIGNED
,
/* M-K */
/* 204 */
E
D_INSERT
,
/* M-L */
/* 204 */
E
M_LOWER_CASE
,
/* M-L */
/* 205 */
ED_
INSERT
,
/* M-M */
/* 205 */
ED_
UNASSIGNED
,
/* M-M */
/* 206 */
ED_
INSERT
,
/* M-N */
/* 206 */
ED_
SEARCH_NEXT_HISTORY
,
/* M-N */
/* 207 */
ED_
INSERT
,
/* M-O */
/* 207 */
ED_
SEQUENCE_LEAD_IN
,
/* M-O */
/* 208 */
ED_
INSERT
,
/* M-P */
/* 208 */
ED_
SEARCH_PREV_HISTORY
,
/* M-P */
/* 209 */
ED_
INSERT
,
/* M-Q */
/* 209 */
ED_
UNASSIGNED
,
/* M-Q */
/* 210 */
ED_
INSERT
,
/* M-R */
/* 210 */
ED_
UNASSIGNED
,
/* M-R */
/* 211 */
ED_
INSERT
,
/* M-S */
/* 211 */
ED_
UNASSIGNED
,
/* M-S */
/* 212 */
ED_
INSERT
,
/* M-T */
/* 212 */
ED_
UNASSIGNED
,
/* M-T */
/* 213 */
E
D_INSERT
,
/* M-U */
/* 213 */
E
M_UPPER_CASE
,
/* M-U */
/* 214 */
ED_
INSERT
,
/* M-V */
/* 214 */
ED_
UNASSIGNED
,
/* M-V */
/* 215 */
E
D_INSERT
,
/* M-W */
/* 215 */
E
M_COPY_REGION
,
/* M-W */
/* 216 */
ED_
INSERT
,
/* M-X */
/* 216 */
ED_
COMMAND
,
/* M-X */
/* 217 */
ED_
INSERT
,
/* M-Y */
/* 217 */
ED_
UNASSIGNED
,
/* M-Y */
/* 218 */
ED_
INSERT
,
/* M-Z */
/* 218 */
ED_
UNASSIGNED
,
/* M-Z */
/* 219 */
ED_
INSERT
,
/* M-[ */
/* 219 */
ED_
SEQUENCE_LEAD_IN
,
/* M-[ */
/* 220 */
ED_
INSERT
,
/* M-\ */
/* 220 */
ED_
UNASSIGNED
,
/* M-\ */
/* 221 */
ED_
INSERT
,
/* M-] */
/* 221 */
ED_
UNASSIGNED
,
/* M-] */
/* 222 */
ED_
INSERT
,
/* M-^ */
/* 222 */
ED_
UNASSIGNED
,
/* M-^ */
/* 223 */
ED_
INSERT
,
/* M-_ */
/* 223 */
ED_
UNASSIGNED
,
/* M-_ */
/* 223 */
ED_
INSERT
,
/* M-` */
/* 223 */
ED_
UNASSIGNED
,
/* M-` */
/* 224 */
ED_
INSERT
,
/* M-a */
/* 224 */
ED_
UNASSIGNED
,
/* M-a */
/* 225 */
ED_
INSERT
,
/* M-b */
/* 225 */
ED_
PREV_WORD
,
/* M-b */
/* 226 */
E
D_INSERT
,
/* M-c */
/* 226 */
E
M_CAPITOL_CASE
,
/* M-c */
/* 227 */
E
D_INSERT
,
/* M-d */
/* 227 */
E
M_DELETE_NEXT_WORD
,
/* M-d */
/* 228 */
ED_
INSERT
,
/* M-e */
/* 228 */
ED_
UNASSIGNED
,
/* M-e */
/* 229 */
E
D_INSERT
,
/* M-f */
/* 229 */
E
M_NEXT_WORD
,
/* M-f */
/* 230 */
ED_
INSERT
,
/* M-g */
/* 230 */
ED_
UNASSIGNED
,
/* M-g */
/* 231 */
ED_
INSERT
,
/* M-h */
/* 231 */
ED_
UNASSIGNED
,
/* M-h */
/* 232 */
ED_
INSERT
,
/* M-i */
/* 232 */
ED_
UNASSIGNED
,
/* M-i */
/* 233 */
ED_
INSERT
,
/* M-j */
/* 233 */
ED_
UNASSIGNED
,
/* M-j */
/* 234 */
ED_
INSERT
,
/* M-k */
/* 234 */
ED_
UNASSIGNED
,
/* M-k */
/* 235 */
E
D_INSERT
,
/* M-l */
/* 235 */
E
M_LOWER_CASE
,
/* M-l */
/* 236 */
ED_
INSERT
,
/* M-m */
/* 236 */
ED_
UNASSIGNED
,
/* M-m */
/* 237 */
ED_
INSERT
,
/* M-n */
/* 237 */
ED_
SEARCH_NEXT_HISTORY
,
/* M-n */
/* 238 */
ED_
INSERT
,
/* M-o */
/* 238 */
ED_
UNASSIGNED
,
/* M-o */
/* 239 */
ED_
INSERT
,
/* M-p */
/* 239 */
ED_
SEARCH_PREV_HISTORY
,
/* M-p */
/* 240 */
ED_
INSERT
,
/* M-q */
/* 240 */
ED_
UNASSIGNED
,
/* M-q */
/* 241 */
ED_
INSERT
,
/* M-r */
/* 241 */
ED_
UNASSIGNED
,
/* M-r */
/* 242 */
ED_
INSERT
,
/* M-s */
/* 242 */
ED_
UNASSIGNED
,
/* M-s */
/* 243 */
ED_
INSERT
,
/* M-t */
/* 243 */
ED_
UNASSIGNED
,
/* M-t */
/* 244 */
E
D_INSERT
,
/* M-u */
/* 244 */
E
M_UPPER_CASE
,
/* M-u */
/* 245 */
ED_
INSERT
,
/* M-v */
/* 245 */
ED_
UNASSIGNED
,
/* M-v */
/* 246 */
E
D_INSERT
,
/* M-w */
/* 246 */
E
M_COPY_REGION
,
/* M-w */
/* 247 */
ED_
INSERT
,
/* M-x */
/* 247 */
ED_
COMMAND
,
/* M-x */
/* 248 */
ED_
INSERT
,
/* M-y */
/* 248 */
ED_
UNASSIGNED
,
/* M-y */
/* 249 */
ED_
INSERT
,
/* M-z */
/* 249 */
ED_
UNASSIGNED
,
/* M-z */
/* 250 */
ED_
INSERT
,
/* M-{ */
/* 250 */
ED_
UNASSIGNED
,
/* M-{ */
/* 251 */
ED_
INSERT
,
/* M-| */
/* 251 */
ED_
UNASSIGNED
,
/* M-| */
/* 252 */
ED_
INSERT
,
/* M-} */
/* 252 */
ED_
UNASSIGNED
,
/* M-} */
/* 253 */
ED_
INSERT
,
/* M-~ */
/* 253 */
ED_
UNASSIGNED
,
/* M-~ */
/* 254 */
ED_
INSERT
/* M-^? */
/* 254 */
ED_
DELETE_PREV_WORD
/* M-^? */
/* 255 */
/* 255 */
};
};
...
...
cmd-line-utils/libedit/refresh.c
View file @
3aa55997
...
@@ -93,7 +93,7 @@ private void
...
@@ -93,7 +93,7 @@ private void
re_addc
(
EditLine
*
el
,
int
c
)
re_addc
(
EditLine
*
el
,
int
c
)
{
{
if
(
isprint
(
c
)
||
((
unsigned
char
)
c
)
>
127
)
{
if
(
isprint
(
c
))
{
re_putc
(
el
,
c
,
1
);
re_putc
(
el
,
c
,
1
);
return
;
return
;
}
}
...
@@ -954,7 +954,7 @@ re_refresh_cursor(EditLine *el)
...
@@ -954,7 +954,7 @@ re_refresh_cursor(EditLine *el)
h
=
1
;
h
=
1
;
v
++
;
v
++
;
}
}
}
else
if
(
!
isprint
((
unsigned
char
)
c
)
||
((
unsigned
char
)
c
)
>
127
)
{
}
else
if
(
!
isprint
((
unsigned
char
)
c
))
{
h
+=
3
;
h
+=
3
;
if
(
h
>
th
)
{
/* if overflow, compensate */
if
(
h
>
th
)
{
/* if overflow, compensate */
h
=
h
-
th
;
h
=
h
-
th
;
...
@@ -1047,7 +1047,7 @@ re_fastaddc(EditLine *el)
...
@@ -1047,7 +1047,7 @@ re_fastaddc(EditLine *el)
char
mc
=
(
c
==
'\177'
)
?
'?'
:
(
c
|
0100
);
char
mc
=
(
c
==
'\177'
)
?
'?'
:
(
c
|
0100
);
re_fastputc
(
el
,
'^'
);
re_fastputc
(
el
,
'^'
);
re_fastputc
(
el
,
mc
);
re_fastputc
(
el
,
mc
);
}
else
if
(
isprint
((
unsigned
char
)
c
)
||
((
unsigned
char
)
c
)
>
127
)
{
/* normal char */
}
else
if
(
isprint
((
unsigned
char
)
c
))
{
/* normal char */
re_fastputc
(
el
,
c
);
re_fastputc
(
el
,
c
);
}
else
{
}
else
{
re_fastputc
(
el
,
'\\'
);
re_fastputc
(
el
,
'\\'
);
...
...
configure.in
View file @
3aa55997
...
@@ -2211,7 +2211,7 @@ then
...
@@ -2211,7 +2211,7 @@ then
else
else
MYSQL_CHECK_LIBEDIT_INTERFACE
MYSQL_CHECK_LIBEDIT_INTERFACE
MYSQL_CHECK_NEW_RL_INTERFACE
MYSQL_CHECK_NEW_RL_INTERFACE
if
[
"
$mysql_cv_new_rl_interface
"
=
"yes"
]
||
[
test
"
$mysql_cv_libedit_interface
"
=
"no"
]
if
[
test
"
$mysql_cv_new_rl_interface
"
=
"yes"
]
||
[
test
"
$mysql_cv_libedit_interface
"
=
"no"
]
then
then
readline_link
=
"-lreadline"
readline_link
=
"-lreadline"
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment