Edit

thodg/libiconv/libcharset/tools/locale_codeset.c

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2000-11-01 14:01:29
    Hash : 507052f0
    Message : Charset determination library.

  • libcharset/tools/locale_codeset.c
  • /* Prints the system dependent name for the current locale's codeset. */
    
    #define _XOPEN_SOURCE 500  /* Needed on AIX 3.2.5 */
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <locale.h>
    #include <langinfo.h>
    
    int main ()
    {
      setlocale(LC_ALL, "");
      printf("%s\n", nl_langinfo(CODESET));
      exit(0);
    }