Edit

thodg/libiconv/libcharset/tools/locale_charset.c

Branch :

  • Show log

    Commit

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

  • libcharset/tools/locale_charset.c
  • /* Prints the portable name for the current locale's charset. */
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <locale.h>
    #include "libcharset.h"
    
    int main ()
    {
      setlocale(LC_ALL, "");
      printf("%s\n", locale_charset());
      exit(0);
    }