aboutsummaryrefslogtreecommitdiff
path: root/time/tst-strptime.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-02-05 14:40:39 +0100
committerAndreas Schwab <schwab@suse.de>2013-06-05 10:33:02 +0200
commit840e2943e8ae020adfa7eafa7877f004e7ecada1 (patch)
tree182c81013a8f79d541a1c01c95a695ffdfb9dd66 /time/tst-strptime.c
parent4c60cb0c8329dd498e9cce3735e5ee6212ad28f4 (diff)
downloadglibc-840e2943e8ae020adfa7eafa7877f004e7ecada1.tar
glibc-840e2943e8ae020adfa7eafa7877f004e7ecada1.tar.gz
glibc-840e2943e8ae020adfa7eafa7877f004e7ecada1.tar.bz2
glibc-840e2943e8ae020adfa7eafa7877f004e7ecada1.zip
Properly handle %W in strptime
Diffstat (limited to 'time/tst-strptime.c')
-rw-r--r--time/tst-strptime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time/tst-strptime.c b/time/tst-strptime.c
index 12b084d750..21fbb63648 100644
--- a/time/tst-strptime.c
+++ b/time/tst-strptime.c
@@ -41,6 +41,7 @@ static const struct
{ "C", "19990502123412", "%Y%m%d%H%M%S", 0, 121, 4, 2 },
{ "C", "2001 20 Mon", "%Y %U %a", 1, 140, 4, 21 },
{ "C", "2001 21 Mon", "%Y %W %a", 1, 140, 4, 21 },
+ { "C", "2012 00 Sun", "%Y %W %a", 0, 0, 0, 1 },
{ "ja_JP.EUC-JP", "2000-01-01 08:12:21 AM", "%Y-%m-%d %I:%M:%S %p",
6, 0, 0, 1 },
{ "en_US.ISO-8859-1", "2000-01-01 08:12:21 PM", "%Y-%m-%d %I:%M:%S %p",