Skip to content

Instantly share code, notes, and snippets.

@bboozzoo
Created March 28, 2015 19:33
Show Gist options
  • Save bboozzoo/821cef2810ef4fad3fb3 to your computer and use it in GitHub Desktop.
Save bboozzoo/821cef2810ef4fad3fb3 to your computer and use it in GitHub Desktop.
#include <langinfo.h>
#include <stdio.h>
int main(void)
{
char *codeset = nl_langinfo(CODESET);
printf("codeset: %s\n", codeset);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment