Re: [PATCH 02/12] tzset: state vars unspecified if geographical TZ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Paul,

On Tue, Jun 11, 2024 at 08:29:05AM GMT, Paul Eggert wrote:
> ---
>  man/man3/tzset.3 | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man3/tzset.3 b/man/man3/tzset.3
> index 8479b17b0..6e89dd530 100644
> --- a/man/man3/tzset.3
> +++ b/man/man3/tzset.3
> @@ -63,6 +63,11 @@ In a System-V-like environment, it will also set the variables \fItimezone\fP
>  have any daylight saving time rules, or to nonzero if there is a time,
>  past, present, or future when daylight saving time applies).
>  .P
> +The
> +.BR tzset ()
> +function initializes these variables to unspecified values if this

Can you confirm that the wording is precise?

If it initializes to unspecified values, I guess it's legal (IIRC) to
read them (even if useless).  Am I understanding correctly?

Or do you mean that the values of the variables are undefined?

Cheers,
Alex

> +timezone is a geographical timezone like "America/New_York" (see below).
> +.P
>  If the
>  .B TZ
>  variable does not appear in the environment, the system timezone is used.
> @@ -155,7 +160,8 @@ TZ="NZST\-12:00:00NZDT\-13:00:00,M10.1.0,M3.3.0"
>  .EE
>  .in
>  .P
> -The second format specifies that the timezone information should be read
> +The second, or "geographical",
> +format specifies that the timezone information should be read
>  from a file:
>  .P
>  .in +4n
> -- 
> 2.45.2
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux