summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-03-01 16:42:26 +0000
committerRobin Watts <robin.watts@artifex.com>2013-03-01 16:50:22 +0000
commita1bfb03748a46e757ae937888c20b72720e1ac9d (patch)
tree8f91a64a44337df16c6119262ca67ab4b796ec3e /scripts
parentd887cb0dd0b861371c0b5ae7629795349f5aa6f9 (diff)
downloadmupdf-a1bfb03748a46e757ae937888c20b72720e1ac9d.tar.xz
Bug 693624: Ensure that windows copes with utf8 filenames
When running under Windows, replace fopen with our own fopen_utf8 that converts from utf8 to unicode before calling the unicode version of fopen.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmapdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index 2a83533e..b52991d7 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -56,6 +56,7 @@ main(int argc, char **argv)
return 1;
}
+#undef fopen
fo = fopen(argv[1], "wb");
if (!fo)
{