optimise <0x20/>0x7E into !C_PRINT

This commit is contained in:
tg 2017-04-28 21:43:30 +00:00
parent 53ae897e1b
commit 12988793b1
1 changed files with 2 additions and 2 deletions

4
misc.c
View File

@ -32,7 +32,7 @@
#include <grp.h>
#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 */