fork(1) download
  1. #include <iostream>
  2. #include <clocale>
  3. #include <cctype>
  4.  
  5.  
  6. int main()
  7. {
  8. const wchar_t c = L'\u042f'; // cyrillic capital letter ya
  9.  
  10. std::setlocale(LC_ALL, "en_US.UTF8");
  11. std::cout << "isalpha('Я') returned "
  12. << std::boolalpha << std::iswalpha(c) << '\n';
  13. }
Success #stdin #stdout 0s 5044KB
stdin
Standard input is empty
stdout
isalpha('Я') returned 1