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

Andreas Schwab schwab@linux-m68k.org
Wed Oct 16 16:32:00 GMT 2013


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



More information about the Libc-alpha mailing list