isdigit(), isuppercaseletter() and other are locale dependent. 
In this case they should match only basic ASCII digits/letters whether locale is US, German, Russian or Chinese.