[PATCH] od: type 'c': format characters in octal as specified by standard

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Fri, 2 Oct 2015 09:38:39 -0400

---
 od.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/od.c b/od.c
index 9521605..e39461d 100644
--- a/od.c
+++ b/od.c
_AT_@ -59,7 +59,7 @@ printchar(FILE *f, unsigned char c)
 		if (strchr("\a\b\t\n\b\f\r\0", c)) {
 			fprintf(f, "%3s ", escdict[c]);
 		} else {
-			fprintf(f, "%3c ", c);
+			fprintf(f, "%03hho ", c);
 		}
 		break;
 	default:
-- 
1.9.1
--------------080406080701090000040002--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 02 2015 - 16:00:06 CEST