summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-21 13:51:26 +0000
committerJim Meyering <jim@meyering.net>1996-12-21 13:51:26 +0000
commitfec6a430dab1ec127afe497eefb44e0c151b740c (patch)
tree79359bf3985f6d0fdcf798c2fefd50e6f0c1d3d4
parent1266fc26ee9e7a33c9eff21958f29611d16a4f82 (diff)
downloadcoreutils-fec6a430dab1ec127afe497eefb44e0c151b740c.tar.xz
update from GNU libc
-rw-r--r--lib/strftime.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index 3ae6dec9c..a1c9a39bb 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -139,7 +139,7 @@ extern int __tz_compute __P ((time_t timer, const struct tm *tm));
# if ! HAVE_LOCALTIME_R
# if ! HAVE_TM_GMTOFF
/* Approximate gmtime_r as best we can in its absence. */
-# define gmtime_r my_gmtime_r
+# define gmtime_r my_gmtime_r
static struct tm *gmtime_r __P ((const time_t *, struct tm *));
static struct tm *
gmtime_r (t, tp)
@@ -493,23 +493,25 @@ strftime (s, maxsize, format, tp)
#endif /* ! DO_MULTIBYTE */
- /* Check for flags that can modify a number format. */
+ /* Check for flags that can modify a format. */
+ pad = 0;
while (1)
{
switch (*++f)
{
+ /* This influences the number formats. */
case '_':
case '-':
case '0':
pad = *f;
continue;
+ /* This changes textual output. */
case '^':
to_uppcase = 1;
continue;
default:
- pad = 0;
break;
}
break;