Module Name:    src
Committed By:   ginsbach
Date:           Tue Jul 14 18:07:17 UTC 2015

Modified Files:
        src/lib/libc/time: strptime.c

Log Message:
Set S_WDAY state for %u (same as it is set for %w).


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/lib/libc/time/strptime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/time/strptime.c
diff -u src/lib/libc/time/strptime.c:1.43 src/lib/libc/time/strptime.c:1.44
--- src/lib/libc/time/strptime.c:1.43	Mon Jul 13 17:45:16 2015
+++ src/lib/libc/time/strptime.c	Tue Jul 14 18:07:17 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: strptime.c,v 1.43 2015/07/13 17:45:16 ginsbach Exp $	*/
+/*	$NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 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.43 2015/07/13 17:45:16 ginsbach Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.44 2015/07/14 18:07:17 ginsbach Exp $");
 #endif
 
 #include "namespace.h"
@@ -363,6 +363,7 @@ literal:
 			bp = conv_num(bp, &i, 1, 7);
 			tm->tm_wday = i % 7;
 			LEGAL_ALT(ALT_O);
+			state |= S_WDAY;
 			continue;
 
 		case 'g':	/* The year corresponding to the ISO week

Reply via email to