summaryrefslogtreecommitdiff
path: root/source/fitz/output.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-12-12 13:09:44 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-12-12 13:40:40 +0100
commite3180169b42481fbbc4886db741782ca1391c46e (patch)
treeb6f480824b68227b203ebea212bc65979fc5c7d1 /source/fitz/output.c
parent88a781b38dc63c02b69c96ef34dc8d6e699de059 (diff)
downloadmupdf-e3180169b42481fbbc4886db741782ca1391c46e.tar.xz
Add fz_remove to cope with utf-8 file names on windows.
Diffstat (limited to 'source/fitz/output.c')
-rw-r--r--source/fitz/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/output.c b/source/fitz/output.c
index 55d2522f..a93ecc97 100644
--- a/source/fitz/output.c
+++ b/source/fitz/output.c
@@ -163,7 +163,7 @@ fz_new_output_with_path(fz_context *ctx, const char *filename, int append)
/* Ensure we create a brand new file. We don't want to clobber our old file. */
if (!append)
{
- if (remove(filename) < 0)
+ if (fz_remove(filename) < 0)
if (errno != ENOENT)
fz_throw(ctx, FZ_ERROR_GENERIC, "cannot remove file '%s': %s", filename, strerror(errno));
}