Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time Don't set state when parsing any timezone (%z)...



details:   https://anonhg.NetBSD.org/src/rev/1d47ad48f579
branches:  trunk
changeset: 339348:1d47ad48f579
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Wed Jul 15 13:54:38 2015 +0000

description:
Don't set state when parsing any timezone (%z) information.  The '+' in
this case isn't the same as the FreeBSD '%+' str[fp]time() (GNU) extension.

diffstat:

 lib/libc/time/strptime.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 754c164cad6b -r 1d47ad48f579 lib/libc/time/strptime.c
--- a/lib/libc/time/strptime.c  Wed Jul 15 11:29:16 2015 +0000
+++ b/lib/libc/time/strptime.c  Wed Jul 15 13:54:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 ginsbach Exp $   */
+/*     $NetBSD: strptime.c,v 1.45 2015/07/15 13:54:38 ginsbach Exp $   */
 
 /*-
  * Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 ginsbach Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.45 2015/07/15 13:54:38 ginsbach Exp $");
 #endif
 
 #include "namespace.h"
@@ -480,7 +480,6 @@
                                continue;
                        case '+':
                                neg = 0;
-                               state |= S_WDAY | S_MON | S_MDAY | S_YEAR;
                                break;
                        case '-':
                                neg = 1;



Home | Main Index | Thread Index | Old Index