summaryrefslogtreecommitdiff
path: root/Build/source/utils/vlna/vlna.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 13:15:08 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 13:15:08 +0000
commitb98940bc6a3d63959c1e0c07acf5c09626bf9efa (patch)
tree28434ce6dab2b782f13999811d7d8274bc1284f9 /Build/source/utils/vlna/vlna.c
parent364ebe8a6594821008a8a42c86b81915e026bc31 (diff)
vlna: Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26977 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/vlna/vlna.c')
-rw-r--r--Build/source/utils/vlna/vlna.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/utils/vlna/vlna.c b/Build/source/utils/vlna/vlna.c
index 83e07380fcf..43a9ccb31cb 100644
--- a/Build/source/utils/vlna/vlna.c
+++ b/Build/source/utils/vlna/vlna.c
@@ -797,7 +797,7 @@ if(argc> 3)printusage(),exit(BAD_OPTIONS);
infile= stdin;outfile= stdout;
if(argc>=2)infile= fopen(argv[1],"r");
if(infile==NULL)ioerr(argv[1]),exit(IO_ERR);
-if(argc==3)outfile= fopen(argv[2],"w");
+if(argc==3)outfile= fopen(argv[2],"wb");
if(outfile==NULL)ioerr(argv[2]),exit(IO_ERR);
if(argc>=2)filename= argv[1];
else filename= NULL;
@@ -839,7 +839,7 @@ if(j==0)infile= fopen(backup,"r");
if(infile==NULL){
ioerr(argv[0]);continue;
}
-outfile= fopen(argv[0],"w");
+outfile= fopen(argv[0],"wb");
if(outfile==NULL){
ioerr(argv[0]);
rename(backup,argv[0]);