Annotation of embedaddon/libiconv/libcharset/tools/locale_codeset.c, revision 1.1

1.1     ! misho       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: 
        !            10: int main ()
        !            11: {
        !            12:   setlocale(LC_ALL, "");
        !            13:   printf("%s\n", nl_langinfo(CODESET));
        !            14:   exit(0);
        !            15: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>