some more small EBCDIC fixes
This commit is contained in:
6
misc.c
6
misc.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user