Hi ports@,
In calcurse 4.3.0, the strftime(3) format string to display dates in
calendar was changed to '%B %-d, %Y'.
The %-* format string is a GNU libc extension which we don't support,
which results in dates being displayed like 'March -d, 2018' instead
of showing the day of the month as a decimal number.
The diff below switches to using the %d format string instead.
Comments? OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/productivity/calcurse/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- Makefile 12 Nov 2017 14:01:26 -0000 1.24
+++ Makefile 21 Mar 2018 22:34:19 -0000
@@ -3,6 +3,7 @@
COMMENT= text-based calendar and scheduling application
DISTNAME= calcurse-4.3.0
+REVISION= 0
EPOCH= 0
CATEGORIES= productivity
Index: patches/patch-src_calcurse_h
===================================================================
RCS file: patches/patch-src_calcurse_h
diff -N patches/patch-src_calcurse_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_calcurse_h 21 Mar 2018 22:34:19 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Fix date display in calendar, the %-* format string is a GNU libc
+extension which is not supported by strftime(3) on OpenBSD.
+
+Index: src/calcurse.h
+--- src/calcurse.h.orig
++++ src/calcurse.h
+@@ -302,7 +302,7 @@ enum datefmt {
+ (datefmt == DATEFMT_YYYYMMDD ? _("yyyy/mm/dd") : _("yyyy-mm-dd"))))
+
+ /* Day heading default format. */
+-#define DAY_HEADING_DEFAULT "%B %-d, %Y"
++#define DAY_HEADING_DEFAULT "%B %d, %Y"
+
+ struct date {
+ unsigned dd;