From 12988793b1c29db5c0db24d493902dbf74116ed0 Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 28 Apr 2017 21:43:30 +0000 Subject: [PATCH] optimise <0x20/>0x7E into !C_PRINT --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index 26f5367..5588061 100644 --- a/misc.c +++ b/misc.c @@ -32,7 +32,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.269 2017/04/28 11:13:48 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.270 2017/04/28 21:43:30 tg Exp $"); #define KSH_CHVT_FLAG #ifdef MKSH_SMALL @@ -1191,7 +1191,7 @@ print_value_quoted(struct shf *shf, const char *s) #if defined(MKSH_EBCDIC) || defined(MKSH_FAUX_EBCDIC) if (ksh_isctrl(c)) #else - if (c < 32 || c > 0x7E) + if (!ctype(c, C_PRINT)) #endif { /* FALLTHROUGH */