fork(7) download
  1. #include <iostream>
  2. #include <clocale>
  3. #include <cctype>
  4.  
  5. int main()
  6. {
  7. std::setlocale(LC_ALL, "en_US.iso88591"); // only now Á is 0xc1
  8. unsigned char big = 0xc1;
  9. unsigned char small = std::tolower(big);
  10.  
  11. std::cout << std::hex << "character code was "
  12. << +big << " became " << +small << '\n';
  13. }
  14.  
Success #stdin #stdout 0.02s 5104KB
stdin
Standard input is empty
stdout
character code was c1 became e1