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, resulting in dates being displayed like 'March -d, 2018' instead of showing the day of the month as a decimal number. Switch to using the %d format string instead. OK naddy@, jca@
This commit is contained in:
parent
80e0b186b8
commit
3b3624d027
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.24 2017/11/12 14:01:26 fcambus Exp $
|
||||
# $OpenBSD: Makefile,v 1.25 2018/03/22 23:15:29 fcambus Exp $
|
||||
|
||||
COMMENT= text-based calendar and scheduling application
|
||||
|
||||
DISTNAME= calcurse-4.3.0
|
||||
REVISION= 0
|
||||
EPOCH= 0
|
||||
|
||||
CATEGORIES= productivity
|
||||
|
16
productivity/calcurse/patches/patch-src_calcurse_h
Normal file
16
productivity/calcurse/patches/patch-src_calcurse_h
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_calcurse_h,v 1.1 2018/03/22 23:15:29 fcambus Exp $
|
||||
|
||||
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 {
|
Loading…
x
Reference in New Issue
Block a user