This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1a][BZ #14876] Make strptime %Z consistent between doc and code.
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 16 Oct 2013 18:32:48 +0200
- Subject: Re: [PATCH 1a][BZ #14876] Make strptime %Z consistent between doc and code.
- Authentication-results: sourceware.org; auth=none
- References: <20131016161110 dot GA16769 at domone dot podge>
OndÅej BÃlka <neleai@seznam.cz> writes:
> diff --git a/time/strptime_l.c b/time/strptime_l.c
> index 00fc1ef..0b901c1 100644
> --- a/time/strptime_l.c
> +++ b/time/strptime_l.c
> @@ -744,8 +744,12 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM)
> s.want_xday = 1;
> break;
> case 'Z':
> - /* XXX How to handle this? */
> - break;
> + /* Read timezone but perform no conversion. */
> + while (ISSPACE (*rp))
> + rp++;
> + while (!ISSPACE (*rp) && (*rp != '\0'))
Please remove the extra parens.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."