changeset 2487:43d755db41ac

* src/diag.cxx: allow ASCII escape character in printf format strings.
author asl
date Thu, 10 Jul 2008 15:39:30 +0000
parents 792a40c91f2a
children fc0255fc3781
files packages/infra/current/ChangeLog packages/infra/current/src/diag.cxx
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/infra/current/ChangeLog
+++ b/packages/infra/current/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-10  Grant Edwards <grant.b.edwards@gmail.com>
+
+        * src/diag.cxx: allow ASCII escape character in printf
+        format strings.
+
 2007-12-28  Oyvind Harboe <oyvind.harboe@zylin.com>
 	
 	* src/memcpy.cxx: added assert when memory areas for memcpy()
--- a/packages/infra/current/src/diag.cxx
+++ b/packages/infra/current/src/diag.cxx
@@ -243,7 +243,7 @@ static cyg_bool diag_check_string( const
 	 * If we want to use other special chars, this test will
          * have to be expanded.  */
 
-        if( c == '\n' || c == '\r' || c == '\b' || c == '\t' )
+        if( c == '\n' || c == '\r' || c == '\b' || c == '\t' || c == '\033' )
             continue;
 
         /* Check for printable chars. This assumes ASCII */