--- /dev/null
+#include <langinfo.h>
+#include <locale.h>
+#include <stdio.h>
+
+int main()
+{
+ printf("locale: %s\n", setlocale (LC_ALL, ""));
+ printf("codeset: %s\n", nl_langinfo(CODESET));
+ printf("date/time format: %s\n", nl_langinfo(D_T_FMT));
+ printf("currency: %s\n", nl_langinfo(CRNCYSTR));
+ return 0;
+}