aboutsummaryrefslogtreecommitdiffstats
path: root/helpers
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-05-30 23:45:27 -0400
committerArnold D. Robbins <arnold@skeeve.com>2015-05-30 23:45:27 -0400
commit22ea6af9c93cbbfce581a00c7a41b0c92fd8507d (patch)
tree5646692c3310e7ea76073abb53e8d4b7a1b97875 /helpers
parent0b876113d778d77543fd8bafef4e37fc2af72bc8 (diff)
parent501c2e5e720e3dbcb2e830c28037dd8b8d46bfcf (diff)
downloadegawk-22ea6af9c93cbbfce581a00c7a41b0c92fd8507d.tar.gz
egawk-22ea6af9c93cbbfce581a00c7a41b0c92fd8507d.tar.bz2
egawk-22ea6af9c93cbbfce581a00c7a41b0c92fd8507d.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'helpers')
-rw-r--r--helpers/ChangeLog4
-rw-r--r--helpers/mb_cur_max.c10
-rw-r--r--helpers/timeformat.c13
3 files changed, 27 insertions, 0 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog
index 357bb09c..fb0cc109 100644
--- a/helpers/ChangeLog
+++ b/helpers/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * mb_cur_max.c, timeformat.c: New files.
+
2015-05-19 Arnold D. Robbins <arnold@skeeve.com>
* 4.1.3: Release tar ball made.
diff --git a/helpers/mb_cur_max.c b/helpers/mb_cur_max.c
new file mode 100644
index 00000000..c36d7ef7
--- /dev/null
+++ b/helpers/mb_cur_max.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <locale.h>
+#include <stdlib.h>
+
+int main()
+{
+ setlocale(LC_ALL, "");
+ printf("MB_CUR_MAX = %lu\n", MB_CUR_MAX);
+ return 0;
+}
diff --git a/helpers/timeformat.c b/helpers/timeformat.c
new file mode 100644
index 00000000..c3d1b933
--- /dev/null
+++ b/helpers/timeformat.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <locale.h>
+#include <langinfo.h>
+
+int main(int argc, char **argv)
+{
+ setlocale(LC_ALL, "");
+ printf("D_T_FMT: %s\n", nl_langinfo(D_T_FMT));
+#ifdef _DATE_FMT
+ printf("_DATE_FMT: %s\n", nl_langinfo(_DATE_FMT));
+#endif /* _DATE_FMT */
+ return 0;
+}