isdigit - cppreference.com
https://en.cppreference.com/w/c/string/byte/isdigit
> isdigit and isxdigit are the only standard narrow character classification functions that are not affected by the currently installed C locale, although some implementations (e.g. Microsoft in 1252 codepage) may classify additional single-byte characters as digits.
MS でだけ isdigit がロケール依存www
std::isalpha - cppreference.com
https://en.cppreference.com/w/cpp/string/byte/isalpha
C/C++ の isdigit と isxdigit (ただし MS プラットフォームは除く) はロケール非依存で、他の isHoge 系は基本的にロケール依存。思い出してきた
C/C++ で文字種判定なんかしなくなったが「とにかく C/C++ の文字判定はロケール依存が怖いからやめておけ」という防衛知識だけが記憶に残っていた