From b1aed31a25eb63a2c948ed8c9416edc276c19b1a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 29 Jun 1998 19:58:43 +0000 Subject: [PATCH] Version 1.1. --- Makefile | 16 ++++++++-------- README | 6 +++--- hexdump.c | 3 +++ hexdump.xml | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 4ba4300..5200c9e 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,16 @@ # Note: When the version changes, you also have to change # * the name of the containing directory # * the RPM spec file -V=1.0 +VERS=1.1 hex: hex.c SOURCES = READ.ME Makefile hex.c hex.1 hex.lsm hex.spec -hex.tar: $(SOURCES) - (cd ..; tar -cvf hex-$(V)/hex.tar `echo $(SOURCES) | sed "/\(^\| \)/s// hex-$(V)\//g"`) -hex.tar.gz: hex.tar - gzip -f hex.tar +hex-$(VERS).tar: $(SOURCES) + tar --name-prefix "hex-$(VERS)/" -cvf hex-$(VERS).tar $(SOURCES) +hex-$(VERS).tar.gz: hex-$(VERS).tar + gzip -f hex-$(VERS).tar hex.shar: $(SOURCES) shar $(SOURCES) >hex.shar @@ -22,6 +22,6 @@ clean: TOPDIR=/usr/src/rpm rpm: hex.tar.gz - cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(V).tar.gz - cp hex.spec $(TOPDIR)/SPECS/hex-$(V)-1.spec - rpm -ba hex-$(V)-1.spec + cp hex.tar.gz $(TOPDIR)/SOURCES/hex-$(VERS).tar.gz + cp hex.spec $(TOPDIR)/SPECS/hex-$(VERS)-1.spec + rpm -ba hex-$(VERS)-1.spec diff --git a/README b/README index 236d385..217e5ef 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ - HEX 1.0 + HEX 1.1 (by Eric S. Raymond ) This hex dumper was born because @@ -14,6 +14,6 @@ in the source, it should work OK under any C with a stdio.h library. You can find updates and other resources at: - http://www.ccil.org/~esr/home.html + http://www.tuxedo.org/~esr -Send comments and bug reports to: esr@snark.thyrsus.com +Send comments and bug reports to: esr@thyrsus.com diff --git a/hexdump.c b/hexdump.c index 36f0a63..ac01b83 100644 --- a/hexdump.c +++ b/hexdump.c @@ -3,6 +3,7 @@ #include #include #include +#include #define DEFWIDTH 16 /* Default # chars to show per line */ #define MAXWIDTH 32 /* Maximum # of bytes per line */ @@ -193,6 +194,8 @@ char *argv[]; int dumpcount = 0; /* count of files dumped so far */ char *cp; + setlocale (LC_CTYPE, ""); + for (argv++, argc--; argc > 0; argv++, argc--) { char s = **argv; diff --git a/hexdump.xml b/hexdump.xml index 9cd676c..a764054 100644 --- a/hexdump.xml +++ b/hexdump.xml @@ -42,4 +42,4 @@ 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.ccil.org/~esr/home.html for updates and other resources. +http://www.tuxedo.org/~esr for updates and other resources. -- 2.43.0