[libc] Fix isdigit(), islower() and isupper().