[misc] use UTF-8 compatible _unlinkU() when deleting files

This commit is contained in:
Pete Batard 2017-08-30 11:24:47 +01:00
parent bf09842fd2
commit fe3004d17f
5 changed files with 20 additions and 11 deletions

View file

@ -358,7 +358,7 @@ out:
if (fd != NULL) fclose(fd);
if (!r) {
if (file != NULL)
_unlink(file);
_unlinkU(file);
if (PromptOnError) {
PrintInfo(0, MSG_242);
SetLastError(error_code);