From: Eric S. Raymond Date: Sat, 18 Sep 1999 09:00:49 +0000 (+0000) Subject: Slipstream in the Windows NT port change. X-Git-Tag: 1.3~8 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=f458443546b8c69dab20668488a287c3a8c7a7e3;p=hexdump.git Slipstream in the Windows NT port change. --- diff --git a/README b/README index 57e1f92..99341d9 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ HEX 1.2 - (by Eric S. Raymond ) + (by Eric S. Raymond ) This hex dumper was born because @@ -10,7 +10,8 @@ This hex dumper was born because If any of these describes your universe, you'll like it too. The format resembles a CP/M or MS/DOS DEBUG dump screen. There is nothing UNIX-specific -in the source, it should work OK under any C with a stdio.h library. +in the source, it should work OK under any C with a stdio.h library. And, +in fact, I'm told it has been used under Windows NT. You can find updates and other resources at: diff --git a/hexdump.c b/hexdump.c index 784ae73..5edb9ec 100644 --- a/hexdump.c +++ b/hexdump.c @@ -288,7 +288,7 @@ char *argv[]; exit(0); } } - else if ((infile = fopen(*argv, "r")) == NULL) + else if ((infile = fopen(*argv, "rb")) == NULL) { (void) fprintf(stderr, "hex: cannot open %s\n", *argv); exit(1); diff --git a/hexdump.xml b/hexdump.xml index 9485c10..38c0ab0 100644 --- a/hexdump.xml +++ b/hexdump.xml @@ -31,7 +31,8 @@ may have them immediately following the option letter or whitespace-separated. .PP If the command-line arguments include two or more filenames (with - being regarded as a `filename' for standard input), hex will emit a -one-line header giving the name the file in front of each input file. +one-line header giving the name of +the file in front of each input file. .PP The -s option expects a start offset, optionally followed by a comma-separated count. Each of these should be a decimal or hex integer @@ -43,5 +44,7 @@ in the style of an -s option argument. Odd widths turn on the -g option. The definition of EBCDIC used is IBM's ASCII-compatible 96-character SCS set used with Systems Network Architecture (SNA). .SH AUTHOR -Eric S. Raymond . See my home page at -http://www.tuxedo.org/~esr for updates and other resources. +Eric S. Raymond . See my home page at +http://www.tuxedo.org/~esr for updates and related resources. + +