From c5709ea5924966b82883b45f0b92e7d6a0486226 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 27 Jul 2012 07:24:40 +0000 Subject: mendexk: Use binary mode for input and output (from W32TeX) Use 8-bit exit() codes git-svn-id: svn://tug.org/texlive/trunk@27191 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/mendexk/ChangeLog | 7 +++++++ Build/source/texk/mendexk/convert.c | 2 +- Build/source/texk/mendexk/fread.c | 17 ++++++++++------- Build/source/texk/mendexk/fwrite.c | 9 +++++++-- Build/source/texk/mendexk/main.c | 9 ++++++--- 5 files changed, 31 insertions(+), 13 deletions(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/mendexk/ChangeLog b/Build/source/texk/mendexk/ChangeLog index 146be2bddd5..120556fb31a 100644 --- a/Build/source/texk/mendexk/ChangeLog +++ b/Build/source/texk/mendexk/ChangeLog @@ -1,3 +1,10 @@ +2012-07-26 Peter Breitenlohner + + * fwrite.c, main.c: Use binary mode for input and output + (from W32TeX). + * convert.c, fread.c, main.c: Use 8-bit exit() codes. + * main.c: Terminate main() with return instead of exit(). + 2012-07-15 Peter Breitenlohner * kp.c: Pass program name string to kpse_set_program_name. diff --git a/Build/source/texk/mendexk/convert.c b/Build/source/texk/mendexk/convert.c index 3341cccad05..be0441b4cdb 100644 --- a/Build/source/texk/mendexk/convert.c +++ b/Build/source/texk/mendexk/convert.c @@ -143,7 +143,7 @@ static int dicvalread(const char *filename, struct dictionary *dicval, int line) fp=nkf_open(filename,"rb"); else { fprintf(stderr, "mendex: %s is forbidden to open for reading.\n",filename); - exit(-1); + exit(255); } for (i=0;i