linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][COVER LETTER] tzset.3: correct file paths and TZ use
@ 2015-01-18  0:30 JWP
       [not found] ` <54BAFE98.2090402-KK0ffGbhmjU@public.gmane.org>
  0 siblings, 1 reply; 24+ messages in thread
From: JWP @ 2015-01-18  0:30 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Everyone,

This is my first contribution to the linux-man
project and I do not know what level of proof is
required for changes, so I'll try to be brief.

tzset.3 says that /usr/share/zoneinfo/localtime
is used for the system timezone if TZ is not set.

glibc does not use this file, and its Makeconfig
comments discourages the use of it at all:

# Where to install default configuration files.  These include the local
# timezone specification and network data base files.
ifndef sysconfdir
sysconfdir = $(prefix)/etc
endif
inst_sysconfdir = $(install_root)$(sysconfdir)

# Where to install the "localtime" timezone file; this is the file whose
# contents $(localtime) specifies.  If this is a relative pathname, it is
# relative to $(zonedir).  It is a good idea to put this somewhere
# other than there, so the zoneinfo directory contains only universal data,
# localizing the configuration data elsewhere.
ifndef localtime-file
localtime-file = $(sysconfdir)/localtime
endif

As shown above the localtime file is in etc/

Further, the manual says if the TZ filespec is
omitted it will use /usr/share/zoneinfo/localtime,
but glibc actually will use UTC in that case,
which the manual states in the third paragraph of
the DESCRIPTION section.

I made some other minor changes that I hopefully
do not need to justify.

Thank you

J William Piggott (1):
  tzset.3: correct file paths and TZ use

 man3/tzset.3 | 81 +++++++++++++++++++++++++++---------------------------------
 1 file changed, 37 insertions(+), 44 deletions(-)

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

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-01-30  6:04 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [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)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).