uppercasing the two whole strings before the call is made, is less
error-prone, and also copes with strings where the upper case version
is longer than the lower case version due to different multi-byte lengths.
(This used to be commit
e227ac1edfd48596a9d5096b6965ddd0beb969a5)
break;
default:
- if (c != *n) goto nomatch;
+ if (c != *n &&
+ toupper_w(c) != toupper_w(*n)) goto nomatch;
n++;
}
}
break;
default:
- if (c != *n) return -1;
+ if (c != *n &&
+ toupper_w(c) != toupper_w(*n)) return -1;
n++;
}
}