fork download
  1. #include <stdio.h>
  2. #include <locale.h>
  3. int main (int argc, char *argv[])
  4. {
  5. setlocale (LC_ALL, "");
  6. char *loc;
  7. loc = setlocale (LC_ALL, NULL);
  8. printf ("LC_ALL: \"%s\"\n", loc);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 3904KB
stdin
Standard input is empty
stdout
LC_ALL: "en_US.UTF-8"