summaryrefslogtreecommitdiffstats
path: root/text-utils/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/hexdump.c')
-rw-r--r--text-utils/hexdump.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/text-utils/hexdump.c b/text-utils/hexdump.c
index 2b3b1bf70..a2be19038 100644
--- a/text-utils/hexdump.c
+++ b/text-utils/hexdump.c
@@ -31,9 +31,14 @@
* SUCH DAMAGE.
*/
+ /* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
+ * - added Native Language Support
+ */
+
#include <sys/types.h>
#include <stdio.h>
#include "hexdump.h"
+#include "nls.h"
FS *fshead; /* head of format strings */
int blocksize; /* data block size */
@@ -47,6 +52,10 @@ int main(argc, argv)
register FS *tfs;
char *p, *rindex();
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
if (!(p = rindex(argv[0], 'o')) || strcmp(p, "od"))
newsyntax(argc, &argv);
else