emsApplication/3rdPartner/libiconv/libcharset/tools/locale_charset.c

14 lines
240 B
C
Raw Normal View History

2024-05-24 12:19:45 +08:00
/* Prints the portable name for the current locale's charset. */
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include "localcharset.h"
int main ()
{
setlocale(LC_ALL, "");
printf("%s\n", locale_charset());
exit(0);
}