From 4dab1e80fa5e80fa46d12deaab7f52ea0c81ad3f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Nov 1997 01:24:57 +0000 Subject: [PATCH] automatically generated from GPLed version --- src/mktime.c | 2 +- src/strftime.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mktime.c b/src/mktime.c index d63f57232aa..a0cbce9a8f1 100644 --- a/src/mktime.c +++ b/src/mktime.c @@ -196,7 +196,7 @@ __mktime_internal (tp, convert, offset) /* The maximum number of probes (calls to CONVERT) should be enough to handle any combinations of time zone rule changes, solar time, - and leap seconds. Posix.1 prohibits leap seconds, but some hosts + and leap seconds. POSIX.1 prohibits leap seconds, but some hosts have them anyway. */ int remaining_probes = 4; diff --git a/src/strftime.c b/src/strftime.c index 7439244bc4d..50aed8ac76a 100644 --- a/src/strftime.c +++ b/src/strftime.c @@ -885,6 +885,11 @@ my_strftime (s, maxsize, format, tp) cpy (buf + sizeof (buf) - bufp, bufp); break; + case 'F': + if (modifier != 0) + goto bad_format; + subfmt = "%Y-%m-%d"; + goto subformat; case 'H': if (modifier == 'E') @@ -1031,6 +1036,7 @@ my_strftime (s, maxsize, format, tp) add (1, *p = '\t'); break; + case 'f': case 'u': /* POSIX.2 extension. */ DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); -- 2.39.2