From ddc7e412ab252e7360a4357664beb3b5d9c4f42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20B=C3=ADlka?= Date: Fri, 25 Oct 2013 19:04:47 +0200 Subject: Make strptime %Z consistent between doc and code. Fixes bug 14876 --- time/strptime_l.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'time/strptime_l.c') diff --git a/time/strptime_l.c b/time/strptime_l.c index 00fc1ef..c2c2ee8 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -744,7 +744,11 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM) s.want_xday = 1; break; case 'Z': - /* XXX How to handle this? */ + /* Read timezone but perform no conversion. */ + while (ISSPACE (*rp)) + rp++; + while (!ISSPACE (*rp) && *rp != '\0') + rp++; break; case 'z': /* We recognize two formats: if two digits are given, these -- cgit v1.1