From: JWP <elseifthen-KK0ffGbhmjU@public.gmane.org>
To: "Michael Kerrisk (man-pages)"
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] tzset.3: correct file paths and TZ use
Date: Fri, 23 Jan 2015 12:29:58 -0500 [thread overview]
Message-ID: <54C28516.7070802@gmx.com> (raw)
In-Reply-To: <54BB92AE.4090604-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hello Michael,
I split the patch[V2] and added more details as requested.
Is there still something wrong with my submission?
Thank you
Have a great weekend
On 01/18/2015 06:02 AM, Michael Kerrisk (man-pages) wrote:
> Hello William,
>
> On 01/18/2015 01:34 AM, JWP wrote:
>> Remove references to /usr/share/zoneinfo/{localtime,posixrules}
>> as they are not used.
>>
>> Add information on invalid TZ values.
>> Add information on a TZ filespec that omits the colon.
>> Add information on system timezone configuration.
>> Add an ENVIRONMENT section.
>> Update the FILES section.
>
> Thanks for submitting this, but it's very hard for me to use
> this patch in the submitted form. Specifically:
>
> * It groups a number of unrelated changes into a single patch.
> Could you break each logical change into a separate commit/patch
> please. This would allow me (and others) to independently review
> each piece and decide whether it should be applied.
>
> * Please make the patch descriptions more than just a statement of
> *what* you changed. Please explain what the problem was, and why
> you fixed it as you did, and where it makes sense add pointers
> to information that supports you reasoning.
>
> Thanks,
>
> Michael
>
>
>> Signed-off-by: J William Piggott <elseifthen-KK0ffGbhmjU@public.gmane.org>
>> ---
>>
>> The following changes since commit dc70d1eaef1643ae48a9b67fcde0cd0b59bf1f20:
>>
>> ld.so.8: tfix (2015-01-16 15:07:43 +0100)
>>
>> are available in the git repository at:
>>
>> git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:jwpi/man-pages.git tzset
>>
>> for you to fetch changes up to 13f95862d88f041ce652ff846b2706c3d1fccf6a:
>>
>> tzset.3: correct file paths and TZ use (2015-01-17 16:51:42 -0500)
>>
>>
>> man3/tzset.3 | 81 +++++++++++++++++++++++++++---------------------------------
>> 1 file changed, 37 insertions(+), 44 deletions(-)
>>
>> diff --git a/man3/tzset.3 b/man3/tzset.3
>> index c1c98e1..1058d2c 100644
>> --- a/man3/tzset.3
>> +++ b/man3/tzset.3
>> @@ -30,7 +30,7 @@
>> .\" Modified 2001-11-13, aeb
>> .\" Modified 2004-12-01 mtk and Martin Schulze <joey-1lCxjdRlhQ9g9hUCZPvPmw@public.gmane.org>
>> .\"
>> -.TH TZSET 3 2014-08-19 "" "Linux Programmer's Manual"
>> +.TH TZSET 3 2015-01-16 "" "Linux Programmer's Manual"
>> .SH NAME
>> tzset, tzname, timezone, daylight \- initialize time conversion information
>> .SH SYNOPSIS
>> @@ -75,15 +75,14 @@ the year when daylight saving time applies).
>> .PP
>> If the
>> .B TZ
>> -variable does not appear in the environment, the \fItzname\fP
>> -variable is initialized with the best approximation of local wall clock
>> -time, as specified by the
>> -.BR tzfile (5)-format
>> -file \fIlocaltime\fP
>> -found in the system timezone directory (see below).
>> -(One also often sees
>> -.I /etc/localtime
>> -used here, a symlink to the right file in the system timezone directory.)
>> +variable does not appear in the environment, the system timezone is used.
>> +The system timezone is configured by copying, or linking, a file in the
>> +.BR tzfile "(5) format to"
>> +.IR /etc/localtime .
>> +A timezone database of these files may be located in the system
>> +timezone directory (see the \fBFILES\fP section below).
>> +
>> +
>> .PP
>> If the
>> .B TZ
>> @@ -118,7 +117,7 @@ The second format is used when there is daylight saving time:
>> .I std offset dst [offset],start[/time],end[/time]
>> .RE
>> .sp
>> -There are no spaces in the specification.
>> +There are no spaces in either specification.
>> The initial \fIstd\fP and
>> \fIoffset\fP specify the standard timezone, as described above.
>> The \fIdst\fP string and \fIoffset\fP specify the name and offset for the
>> @@ -170,47 +169,41 @@ from a file:
>> :[filespec]
>> .RE
>> .sp
>> -If the file specification \fIfilespec\fP is omitted, the timezone
>> -information is read from the file
>> -.I localtime
>> -in the system timezone directory, which nowadays usually is
>> -.IR /usr/share/zoneinfo .
>> -This file is in
>> +If the file specification \fIfilespec\fP is omitted, or its value cannot
>> +be interpreted, Coordinated Universal Time (UTC) is used. A correct
>> +\%\fIfilespec\fP will be a path pointing to a file in the
>> .BR tzfile (5)
>> -format.
>> -If \fIfilespec\fP is given, it specifies another
>> -.BR tzfile (5)-format
>> -file to read the timezone information from.
>> -If \fIfilespec\fP does not begin with a \(aq/\(aq, the file specification is
>> -relative to the system timezone directory.
>> +format. A timezone database of these files may be located in the system
>> +timezone directory (see the \fBFILES\fP section below). If
>> +\fIfilespec\fP does not begin with a \(aq/\(aq, the file specification
>> +is relative to the system timezone directory. If the colon is omitted
>> +each of the above three \fBTZ\fP formats will be tried in order.
>> .PP
>> Here's an example, once more for New Zealand:
>> .nf
>>
>> TZ=":Pacific/Auckland"
>> .fi
>> +.SH ENVIRONMENT
>> +.TP
>> +.B TZ
>> +.RB If \ TZ
>> +is set, its value takes precedence over the system configured timezone.
>> +.TP
>> +.B TZDIR
>> +.RB If \ TZDIR
>> +is set, its value takes precedence over the system configured timezone
>> +database directory path.
>> .SH FILES
>> -Under glibc,
>> -the system timezone directory is determined using the
>> -.BR TZDIR
>> -the environment variable.
>> -If
>> -.BR TZDIR
>> -is not set, the default depends on the system setup, but is normally
>> -.IR /usr/share/zoneinfo .
>> -.LP
>> -This timezone directory contains the files
>> -
>> -.nf
>> - localtime local timezone file
>> - posixrules rules for POSIX-style TZ's
>> -.fi
>> -.LP
>> -Often,
>> -.I /etc/localtime
>> -is a symbolic link to the file
>> -.I localtime
>> -or to the correct timezone file in the system timezone directory.
>> +.TP
>> +.B /etc/localtime
>> +The system timezone file.
>> +.TP
>> +.B /usr/share/zoneinfo/
>> +The system timezone database directory.
>> +.PP
>> +Above are the current standard file locations, but they are
>> +configurable when glibc is compiled.
>> .SH CONFORMING TO
>> SVr4, POSIX.1-2001, 4.3BSD.
>> .SH NOTES
>>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-23 17:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-18 0:30 [PATCH][COVER LETTER] tzset.3: correct file paths and TZ use JWP
[not found] ` <54BAFE98.2090402-KK0ffGbhmjU@public.gmane.org>
2015-01-18 0:34 ` [PATCH] " JWP
[not found] ` <54BAFFAE.2020106-KK0ffGbhmjU@public.gmane.org>
2015-01-18 11:02 ` Michael Kerrisk (man-pages)
[not found] ` <54BB92AE.4090604-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-23 17:29 ` JWP [this message]
[not found] ` <54C28516.7070802-KK0ffGbhmjU@public.gmane.org>
2015-01-25 13:43 ` Michael Kerrisk (man-pages)
2015-01-18 20:00 ` [PATCH[V2] 1/5] tzset.3: filespec omitted incorrect JWP
[not found] ` <54BC10C7.1030706-KK0ffGbhmjU@public.gmane.org>
2015-01-25 14:11 ` Michael Kerrisk (man-pages)
2015-01-18 20:02 ` [PATCH[V2] 2/5] tzset.3: First TZ specification clarification JWP
[not found] ` <54BC1172.5060100-KK0ffGbhmjU@public.gmane.org>
2015-01-25 14:10 ` Michael Kerrisk (man-pages)
2015-01-18 20:04 ` [PATCH[V2] 3/5] tzset.3: correct system timezone file path JWP
[not found] ` <54BC11E2.9020906-KK0ffGbhmjU@public.gmane.org>
2015-01-25 14:11 ` Michael Kerrisk (man-pages)
2015-01-18 20:07 ` [PATCH[V2] 4/5] tzset.3: Add Environment section JWP
[not found] ` <54BC126E.1080904-KK0ffGbhmjU@public.gmane.org>
2015-01-25 14:12 ` Michael Kerrisk (man-pages)
[not found] ` <54C4F9E7.6090104-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-28 23:52 ` JWP
2015-01-29 0:09 ` [PATCH V3 1/1] " J William Piggott
[not found] ` <54C97A2D.2050908-KK0ffGbhmjU@public.gmane.org>
2015-01-29 5:50 ` Michael Kerrisk (man-pages)
[not found] ` <54C9CA11.207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-29 16:27 ` [PATCH V4 " J William Piggott
[not found] ` <54CA5F5B.7070405-KK0ffGbhmjU@public.gmane.org>
2015-01-30 6:04 ` Michael Kerrisk (man-pages)
2015-01-29 0:13 ` [PATCH 1/1] tzset.3: Add description for posixrules file J William Piggott
[not found] ` <54C97B45.2070300-KK0ffGbhmjU@public.gmane.org>
2015-01-29 5:51 ` Michael Kerrisk (man-pages)
[not found] ` <54C9CA67.4080009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-29 16:31 ` [PATCH V2 " J William Piggott
[not found] ` <54CA604A.1050500-KK0ffGbhmjU@public.gmane.org>
2015-01-30 6:04 ` Michael Kerrisk (man-pages)
2015-01-18 20:10 ` [PATCH[V2] 5/5] tzset.3: TZ filespec omitts the colon JWP
[not found] ` <54BC132A.8090504-KK0ffGbhmjU@public.gmane.org>
2015-01-25 14:11 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C28516.7070802@gmx.com \
--to=elseifthen-kk0ffgbhmju@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.