• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/libiconv-1.14/libcharset/tools/
1/* Prints the system dependent name for the current locale's codeset. */
2
3#define _XOPEN_SOURCE 500  /* Needed on AIX 3.2.5 */
4
5#include <stdio.h>
6#include <stdlib.h>
7#include <locale.h>
8#include <langinfo.h>
9
10int main ()
11{
12  setlocale(LC_ALL, "");
13  printf("%s\n", nl_langinfo(CODESET));
14  exit(0);
15}
16