Module Name:    src
Committed By:   kre
Date:           Tue Sep  4 01:13:50 UTC 2018

Modified Files:
        src/usr.bin/printf: printf.c

Log Message:
Printf's that support \e for escape all seem to also support \E.
Except us.   Now we do as well.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/printf/printf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/printf/printf.c
diff -u src/usr.bin/printf/printf.c:1.44 src/usr.bin/printf/printf.c:1.45
--- src/usr.bin/printf/printf.c:1.44	Mon Sep  3 04:10:20 2018
+++ src/usr.bin/printf/printf.c	Tue Sep  4 01:13:50 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: printf.c,v 1.44 2018/09/03 04:10:20 kre Exp $	*/
+/*	$NetBSD: printf.c,v 1.45 2018/09/04 01:13:50 kre Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)printf.c	8.2 (Berkeley) 3/22/95";
 #else
-__RCSID("$NetBSD: printf.c,v 1.44 2018/09/03 04:10:20 kre Exp $");
+__RCSID("$NetBSD: printf.c,v 1.45 2018/09/04 01:13:50 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -504,6 +504,7 @@ conv_escape(char *str, char *conv_ch, in
 	case 'a':	value = '\a';	break;	/* alert */
 	case 'b':	value = '\b';	break;	/* backspace */
 	case 'e':	value = ESCAPE;	break;	/* escape */
+	case 'E':	value = ESCAPE;	break;	/* escape */
 	case 'f':	value = '\f';	break;	/* form-feed */
 	case 'n':	value = '\n';	break;	/* newline */
 	case 'r':	value = '\r';	break;	/* carriage-return */

Reply via email to