=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/main.c,v retrieving revision 1.29 retrieving revision 1.30 diff -c -r1.29 -r1.30 *** src/usr.bin/less/main.c 2015/11/13 16:48:48 1.29 --- src/usr.bin/less/main.c 2015/11/14 20:13:29 1.30 *************** *** 350,362 **** for (; *s != '\0'; s++, ps++) { c = *ps; if (uppercase) { ! if (len == 0 && isupper(c)) return (-1); ! if (isupper(c)) ! c = tolower(c); } sc = *s; ! if (len > 0 && isupper(sc)) sc = tolower(sc); if (c != sc) break; --- 350,361 ---- for (; *s != '\0'; s++, ps++) { c = *ps; if (uppercase) { ! if (len == 0 && islower(c)) return (-1); ! c = tolower(c); } sc = *s; ! if (len > 0) sc = tolower(sc); if (c != sc) break;