Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time Set S_WDAY state for %u (same as it is set for...
details: https://anonhg.NetBSD.org/src/rev/097497a6be35
branches: trunk
changeset: 809475:097497a6be35
user: ginsbach <ginsbach%NetBSD.org@localhost>
date: Tue Jul 14 18:07:17 2015 +0000
description:
Set S_WDAY state for %u (same as it is set for %w).
diffstat:
lib/libc/time/strptime.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3d796ba93e0e -r 097497a6be35 lib/libc/time/strptime.c
--- a/lib/libc/time/strptime.c Tue Jul 14 08:44:59 2015 +0000
+++ b/lib/libc/time/strptime.c Tue Jul 14 18:07:17 2015 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index