Annotation of embedaddon/libiconv/libcharset/tools/locale_charset.c, revision 1.1.1.1

1.1       misho       1: /* Prints the portable name for the current locale's charset. */
                      2: 
                      3: #include <stdio.h>
                      4: #include <stdlib.h>
                      5: #include <locale.h>
                      6: #include "localcharset.h"
                      7: 
                      8: int main ()
                      9: {
                     10:   setlocale(LC_ALL, "");
                     11:   printf("%s\n", locale_charset());
                     12:   exit(0);
                     13: }

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