some more small EBCDIC fixes

This commit is contained in:
tg
2017-05-05 19:43:52 +00:00
parent 01b0c107b5
commit 6dc1ab0379
3 changed files with 31 additions and 31 deletions

6
misc.c
View File

@@ -32,7 +32,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.275 2017/05/03 17:48:08 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.276 2017/05/05 19:43:52 tg Exp $");
#define KSH_CHVT_FLAG
#ifdef MKSH_SMALL
@@ -1134,7 +1134,9 @@ gmatch_cclass(const unsigned char *pat, unsigned char sc)
}
}
/* now do the actual range match check */
if (lc != 0 && /* c != 0 && */ lc <= sc && sc <= c)
if (lc != 0 /* && c != 0 */ &&
asciibetical(lc) <= asciibetical(sc) &&
asciibetical(sc) <= asciibetical(c))
found = true;
/* forced next character? */
if (subc) {