> Date: Sun, 8 Apr 2001 12:05:35 +0200
> From: Jan Prikryl <[EMAIL PROTECTED]>
> Wouldn't just an explicit type cast to `(unsigned char)ch' suffice?
That would work for now, but it won't work if wget got properly
internationalized. That is because isdigit(x) succeeds for non-ASCII
digits in some locales. Some locales have multiple ways to represent
the decimal digits, and some locales even have non-decimal digits.
It's best to use isdigit only when one wants _all_ the characters that
are digits, not just '0' through '9'. If you just want '0' through
'9', then you should use the test '0' <= x && x <= '9'; this code is
guaranteed to work in all locales.