Re: [misc] calcurse git 7b81e69 and current OpenBSD patches to consider - strftime

On Sat, 09 Feb 2019 at 13:50:52, Lars Henriksen wrote:
> On Fri, Feb 08, 2019 at 02:04:18PM +0000, Mikolaj Kucharski wrote:
> > 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
> > @@ -318,7 +318,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"
> >  
> >  /*
> >   * Calcurse representation of the date of a day in the calendar.
> 
> I believe that
> 
> #define DAY_HEADING_DEFAULT "%B %e, %Y"
> 
> would be a better, standard-conformant replacement.

I like that suggestion. Will push a patch to master. Thanks to both
Mikolaj and you, Lars!

Links