]> thyrsus.com Git - hexdump.git/commitdiff
Slipstream in the Windows NT port change.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 18 Sep 1999 09:00:49 +0000 (09:00 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 18 Sep 1999 09:00:49 +0000 (09:00 +0000)
README
hexdump.c
hexdump.xml

diff --git a/README b/README
index 57e1f9205e4c7f1c1ee858fb0ac66f11bb6a36e7..99341d9d96f1c982fda1255f81b99aaefb977b81 100644 (file)
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
                                HEX 1.2
-               (by Eric S. Raymond <esr@snark.thyrsus.com>)
+               (by Eric S. Raymond <esr@thyrsus.com>)
 
 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:
 
index 784ae73bb90257892d2467f417920eb695755711..5edb9ec23f4f888fb26f75ab47d590b330385393 100644 (file)
--- 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);
index 9485c101c323bb4177536caf071ecb52e9029f06..38c0ab018747a503150fb1187ad50e078a6ff4c7 100644 (file)
@@ -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 <esr@snark.thyrsus.com>.  See my home page at
-http://www.tuxedo.org/~esr for updates and other resources.
+Eric S. Raymond <esr@thyrsus.com>.  See my home page at
+http://www.tuxedo.org/~esr for updates and related resources.
+
+