Updated translations.
[libiconv.git] / libcharset / tools / locale_codeset.c
bloba9c209d6d0fe1bafc6c5c20960197822ce3789b8
1 /* Prints the system dependent name for the current locale's codeset. */
3 #define _XOPEN_SOURCE 500 /* Needed on AIX 3.2.5 */
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <locale.h>
8 #include <langinfo.h>
10 int main ()
12 setlocale(LC_ALL, "");
13 printf("%s\n", nl_langinfo(CODESET));
14 exit(0);