This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1a][BZ #14876] Make strptime %Z consistent between doc and code.


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]