diff options
Diffstat (limited to 'jni/iconv/libcharset/tools/locale_monthnames.c')
-rw-r--r-- | jni/iconv/libcharset/tools/locale_monthnames.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/jni/iconv/libcharset/tools/locale_monthnames.c b/jni/iconv/libcharset/tools/locale_monthnames.c new file mode 100644 index 0000000..f109587 --- /dev/null +++ b/jni/iconv/libcharset/tools/locale_monthnames.c @@ -0,0 +1,26 @@ +/* Prints the system dependent names for the 12 months in the current locale. */ + +#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(MON_1)); + printf("%s\n", nl_langinfo(MON_2)); + printf("%s\n", nl_langinfo(MON_3)); + printf("%s\n", nl_langinfo(MON_4)); + printf("%s\n", nl_langinfo(MON_5)); + printf("%s\n", nl_langinfo(MON_6)); + printf("%s\n", nl_langinfo(MON_7)); + printf("%s\n", nl_langinfo(MON_8)); + printf("%s\n", nl_langinfo(MON_9)); + printf("%s\n", nl_langinfo(MON_10)); + printf("%s\n", nl_langinfo(MON_11)); + printf("%s\n", nl_langinfo(MON_12)); + exit(0); +} |