#include #include #include #include int main (void) { char *charset; setlocale (LC_ALL, ""); charset = nl_langinfo (CODESET); printf ("Charset is: %s\n", charset); free (charset); return EXIT_SUCCESS; }