Open XVilka opened 3 years ago
some of them are legit, e.g. the "chcp" one in librz/cons/cons.c
Couldn't that be done using SetConsoleCP
and SetConsoleOutputCP
API? I don't know Windows Console API so I might be wrong.
@karliss in fact it calls SetConsoleOutputCP()
right before. Not sure why it was done. Maybe @kazarmy knows more
There is a bunch of
rz_sys_cmd*()
calls in thelibrz/
while most of them unnecessary and can be achieved with the calling of the API function.There are two categories of such calls - calling of the internal utils, e.g.
rz-bin
, and calling of the external tools, e.g.cp
ormove
.Note though, that some of them are legit.