Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 6 Feb 2018 12:46:18 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Bugs in strftime

On Mon, Feb 05, 2018 at 12:51:24PM -0500, Rich Felker wrote:
> > This bug is causing these failures:
> > > "%+3C": expected "+20", got "020"
> > > "%+11F": expected "+2016-01-03", got "02016-01-03"
> > > "%+5G": expected "+2015", got "02015"
> > > "%+5Y": expected "+2016", got "02016"
> > > "%+5Y": expected "+0000", got "00000"
> 
> I'll need to look over how to change the logic to match the desired
> behavior but it shouldn't be hard.

Attaching a patch I intend to push if I don't find any problems, and
the one I've already got queued up for the %F issue. Let me know if
you see any issues with them.

Rich

View attachment "0001-fix-strftime-field-widths-with-F-format-and-zero-yea.patch" of type "text/plain" (1251 bytes)

View attachment "0002-adjust-strftime-modifier-to-match-apparent-intent-of.patch" of type "text/plain" (2045 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ