Check for windows patch to convert also in --replace
This commit is contained in:
parent
5582cd7dbe
commit
03c2ee0d64
@ -7406,6 +7406,7 @@ void do_get_replace(struct st_command *command)
|
|||||||
if (!*from)
|
if (!*from)
|
||||||
die("Wrong number of arguments to replace_result in '%s'",
|
die("Wrong number of arguments to replace_result in '%s'",
|
||||||
command->query);
|
command->query);
|
||||||
|
IF_WIN(fix_win_paths(to, from - to), 0);
|
||||||
insert_pointer_name(&from_array,to);
|
insert_pointer_name(&from_array,to);
|
||||||
to= get_string(&buff, &from, command);
|
to= get_string(&buff, &from, command);
|
||||||
insert_pointer_name(&to_array,to);
|
insert_pointer_name(&to_array,to);
|
||||||
@ -8596,9 +8597,7 @@ void free_pointer_array(POINTER_ARRAY *pa)
|
|||||||
void replace_dynstr_append_mem(DYNAMIC_STRING *ds,
|
void replace_dynstr_append_mem(DYNAMIC_STRING *ds,
|
||||||
const char *val, int len)
|
const char *val, int len)
|
||||||
{
|
{
|
||||||
#ifdef __WIN__
|
IF_WIN(fix_win_paths(val, len), 0);
|
||||||
fix_win_paths(val, len);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (glob_replace_regex)
|
if (glob_replace_regex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user