diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-03-01 16:42:26 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-01 16:50:22 +0000 |
commit | a1bfb03748a46e757ae937888c20b72720e1ac9d (patch) | |
tree | 8f91a64a44337df16c6119262ca67ab4b796ec3e /scripts/cmapdump.c | |
parent | d887cb0dd0b861371c0b5ae7629795349f5aa6f9 (diff) | |
download | mupdf-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/cmapdump.c')
-rw-r--r-- | scripts/cmapdump.c | 1 |
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) { |