fork download
  1. #include <iostream>
  2. #include <locale>
  3.  
  4. int main() {
  5. const char *localeName = "WINDOWS-1251";
  6. try {
  7. std::locale locale(localeName);
  8. std::cout.imbue(locale);
  9. } catch (...) {
  10. std::cerr << "Locale " << localeName << " is not supported" << std::endl;
  11. }
  12.  
  13. std::cout << "Сука блядская!" << std::endl;
  14. return 0;
  15. }
Success #stdin #stdout #stderr 0s 17712KB
stdin
Standard input is empty
stdout
Сука блядская!
stderr
Locale WINDOWS-1251 is not supported