diff options
| author | Ulrich Drepper | 1997-11-12 01:24:57 +0000 |
|---|---|---|
| committer | Ulrich Drepper | 1997-11-12 01:24:57 +0000 |
| commit | 4dab1e80fa5e80fa46d12deaab7f52ea0c81ad3f (patch) | |
| tree | 6f591df27aa369e2935cb06d1d0b455ad1d9b395 | |
| parent | 915c0e25150b8b823afeefea3d5b1647659f27db (diff) | |
| download | emacs-4dab1e80fa5e80fa46d12deaab7f52ea0c81ad3f.tar.gz emacs-4dab1e80fa5e80fa46d12deaab7f52ea0c81ad3f.zip | |
automatically generated from GPLed version
| -rw-r--r-- | src/mktime.c | 2 | ||||
| -rw-r--r-- | src/strftime.c | 6 |
2 files changed, 7 insertions, 1 deletions
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) | |||
| 196 | 196 | ||
| 197 | /* The maximum number of probes (calls to CONVERT) should be enough | 197 | /* The maximum number of probes (calls to CONVERT) should be enough |
| 198 | to handle any combinations of time zone rule changes, solar time, | 198 | to handle any combinations of time zone rule changes, solar time, |
| 199 | and leap seconds. Posix.1 prohibits leap seconds, but some hosts | 199 | and leap seconds. POSIX.1 prohibits leap seconds, but some hosts |
| 200 | have them anyway. */ | 200 | have them anyway. */ |
| 201 | int remaining_probes = 4; | 201 | int remaining_probes = 4; |
| 202 | 202 | ||
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) | |||
| 885 | cpy (buf + sizeof (buf) - bufp, bufp); | 885 | cpy (buf + sizeof (buf) - bufp, bufp); |
| 886 | break; | 886 | break; |
| 887 | 887 | ||
| 888 | case 'F': | ||
| 889 | if (modifier != 0) | ||
| 890 | goto bad_format; | ||
| 891 | subfmt = "%Y-%m-%d"; | ||
| 892 | goto subformat; | ||
| 888 | 893 | ||
| 889 | case 'H': | 894 | case 'H': |
| 890 | if (modifier == 'E') | 895 | if (modifier == 'E') |
| @@ -1031,6 +1036,7 @@ my_strftime (s, maxsize, format, tp) | |||
| 1031 | add (1, *p = '\t'); | 1036 | add (1, *p = '\t'); |
| 1032 | break; | 1037 | break; |
| 1033 | 1038 | ||
| 1039 | case 'f': | ||
| 1034 | case 'u': /* POSIX.2 extension. */ | 1040 | case 'u': /* POSIX.2 extension. */ |
| 1035 | DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); | 1041 | DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); |
| 1036 | 1042 | ||