Commit ddeda744aa204177cea79331d1bfc3986c7c68ad
Fix work with filenames with specchars on Win&cmd
Resolves #41.
Thanks to Daniel Polanco, a.k.a. dlpolanco.
Author: xaizek
Author date (UTC): 2014-04-21 10:52
Committer name: xaizek
Committer date (UTC): 2014-04-21 10:52
Parent(s): a6b7761c51aa3567e7ae5ab27a3e89d18e1772c4
Signing key:
Tree: d6b40f0044f0cf591983526bbc1fbdfb962a0f3b
File ChangeLog changed (mode: 100644) (index 9c889ad4c..45e5df55d) |
169 |
169 |
Fixed updating terminal title for some environments. Thanks to |
Fixed updating terminal title for some environments. Thanks to |
170 |
170 |
filterfalse. |
filterfalse. |
171 |
171 |
|
|
172 |
|
Fixed extending filetypes that are missing macro on Windows when cmd shell |
|
173 |
|
is used. Thanks to Daniel Polanco, a.k.a. dlpolanco. |
|
|
172 |
|
Fixed extending filetypes that are missing macro on Windows when cmd.exe |
|
173 |
|
shell is used. Thanks to Daniel Polanco, a.k.a. dlpolanco. |
|
174 |
|
|
|
175 |
|
Fixed work with filenames contining special symbols on Windows with cmd.exe |
|
176 |
|
shell. Thanks to Daniel Polanco, a.k.a. dlpolanco. |
174 |
177 |
|
|
175 |
178 |
0.7.6-beta2 to 0.7.6 |
0.7.6-beta2 to 0.7.6 |
176 |
179 |
|
|
File src/utils/utils_win.c changed (mode: 100644) (index fe51bc95c..f986e912a) |
... |
... |
run_in_shell_no_cls(char command[]) |
76 |
76 |
|
|
77 |
77 |
if(curr_stats.shell_type == ST_CMD) |
if(curr_stats.shell_type == ST_CMD) |
78 |
78 |
{ |
{ |
79 |
|
snprintf(buf, sizeof(buf), "%s /C \"%s\"", cfg.shell, command); |
|
|
79 |
|
/* See "cmd /?" for an "explanation" why extra double quotes are |
|
80 |
|
* omitted. */ |
|
81 |
|
snprintf(buf, sizeof(buf), "%s /C %s", cfg.shell, command); |
80 |
82 |
return system(buf); |
return system(buf); |
81 |
83 |
} |
} |
82 |
84 |
else |
else |