[Issue 9668] undefined behavior for isdigit in tls2.c