Proposed changes for Argentina, tzfile.5, and strerror

Arthur David Olson olsona at lecserver.nci.nih.gov
Thu Dec 27 17:34:52 UTC 2007


Here are proposed changes to the time zone package:
1. Most importantly, changes to the "southamerica" file (combinining
material from Jesper Norgaard Welen and Paul Eggert) to reflect Argentina's
readoption of daylight saving time.
2. Jonathan Leffler's fixes to tzfile.5.
3. Changes to eliminate HAVE_STRERROR and the conditional strerror definition.
(A safe change since it should have no run-time effects; we'll see if anybody
complains about uncompilability).

Barring problems these changes are to show up on the ftp site on Monday morning as usual, just in time to be late for the Argentina party.

				--ado

------- southamerica -------
*** /tmp/geta2179	Thu Dec 27 12:24:03 2007
--- /tmp/getb2179	Thu Dec 27 12:24:03 2007
***************
*** 1,4 ****
! # @(#)southamerica	8.13
  # <pre>
  
  # This data is by no means authoritative; if you think you know better,
--- 1,4 ----
! # @(#)southamerica	8.14
  # <pre>
  
  # This data is by no means authoritative; if you think you know better,
***************
*** 106,111 ****
--- 106,123 ----
  # from the International Date Line.
  Rule	Arg	1999	only	-	Oct	Sun>=1	0:00	1:00	S
  Rule	Arg	2000	only	-	Mar	Sun>=1	0:00	0	-
+ # From Jesper Norgaard Welen (2007-12-26)
+ # The last hurdle of Argentina DST is over, the proposal was approved in
+ # the lower chamber too (Deputados) with a vote 192 for and 2 against.
+ # By the way thanks to Mariano Absatz and Daniel Mario Vega for the link to
+ # the original scanned proposal, where the dates and the zero hours are
+ # clear and unambiguous...This is the article about final approval:
+ # <a href="http://www.lanacion.com.ar/politica/nota.asp?nota_id=973996">
+ # http://www.lanacion.com.ar/politica/nota.asp?nota_id=973996
+ # </a>
+ Rule	Arg	2007	only	-	Dec	30	0:00	1:00	S
+ Rule	Arg	2008	max	-	Mar	Sun>=15	0:00	0	-
+ Rule	Arg	2008	max	-	Oct	Sun>=1	0:00	1:00	S
  #
  # From Peter Gradelski via Steffen Thorsen (2000-03-01):
  # We just checked with our Sao Paulo office and they say the government of

------- tzfile.5 -------
*** /tmp/geta2215	Thu Dec 27 12:27:17 2007
--- /tmp/getb2215	Thu Dec 27 12:27:17 2007
***************
*** 57,63 ****
  described in the file is associated with the same-indexed transition time.
  These values serve as indices into an array of
  .I ttinfo
! structures that appears next in the file;
  these structures are defined as follows:
  .in +.5i
  .sp
--- 57,65 ----
  described in the file is associated with the same-indexed transition time.
  These values serve as indices into an array of
  .I ttinfo
! structures (with
! .I tzh_typecnt
! entries) that appears next in the file;
  these structures are defined as follows:
  .in +.5i
  .sp
***************
*** 138,144 ****
  the above header and data is followed by a second header and data,
  identical in format except that
  eight bytes are used for each transition time or leap second time.
! After the second header and data comes a newline-encloded,
  POSIX-TZ-environment-variable-style string for use in handling instants
  after the last transition time stored in the file
  (with nothing between the newlines if there is no POSIX representation for
--- 140,146 ----
  the above header and data is followed by a second header and data,
  identical in format except that
  eight bytes are used for each transition time or leap second time.
! After the second header and data comes a newline-enclosed,
  POSIX-TZ-environment-variable-style string for use in handling instants
  after the last transition time stored in the file
  (with nothing between the newlines if there is no POSIX representation for
***************
*** 145,150 ****
  such instants).
  .SH SEE ALSO
  newctime(3)
! .\" @(#)tzfile.5	8.1
  .\" This file is in the public domain, so clarified as of
  .\" 1996-06-05 by Arthur David Olson.
--- 147,152 ----
  such instants).
  .SH SEE ALSO
  newctime(3)
! .\" @(#)tzfile.5	8.2
  .\" This file is in the public domain, so clarified as of
  .\" 1996-06-05 by Arthur David Olson.

------- Makefile -------
*** /tmp/geta2073	Thu Dec 27 12:14:33 2007
--- /tmp/getb2073	Thu Dec 27 12:14:33 2007
***************
*** 1,4 ****
! # @(#)Makefile	8.5
  
  # Change the line below for your time zone (after finding the zone you want in
  # the time zone files, or adding it to a time zone file).
--- 1,4 ----
! # @(#)Makefile	8.6
  
  # Change the line below for your time zone (after finding the zone you want in
  # the time zone files, or adding it to a time zone file).
***************
*** 95,101 ****
  #  -DHAVE_SETTIMEOFDAY=2 if settimeofday uses 2nd arg (4.3BSD)
  #  -DHAVE_SETTIMEOFDAY=3 if settimeofday ignores 2nd arg (4.4BSD)
  #  -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
- #  -DHAVE_STRERROR=0 if your system lacks the strerror function
  #  -DHAVE_SYMLINK=0 if your system lacks the symlink function
  #  -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
  #  -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
--- 95,100 ----

------- private.h -------
*** /tmp/geta2092	Thu Dec 27 12:14:41 2007
--- /tmp/getb2092	Thu Dec 27 12:14:41 2007
***************
*** 21,27 ****
  
  #ifndef lint
  #ifndef NOID
! static char	privatehid[] = "@(#)private.h	8.5";
  #endif /* !defined NOID */
  #endif /* !defined lint */
  
--- 21,27 ----
  
  #ifndef lint
  #ifndef NOID
! static char	privatehid[] = "@(#)private.h	8.6";
  #endif /* !defined NOID */
  #endif /* !defined lint */
  
***************
*** 48,57 ****
  #define HAVE_SETTIMEOFDAY	3
  #endif /* !defined HAVE_SETTIMEOFDAY */
  
- #ifndef HAVE_STRERROR
- #define HAVE_STRERROR		1
- #endif /* !defined HAVE_STRERROR */
- 
  #ifndef HAVE_SYMLINK
  #define HAVE_SYMLINK		1
  #endif /* !defined HAVE_SYMLINK */
--- 48,53 ----

------- zic.c -------
*** /tmp/geta2111	Thu Dec 27 12:14:50 2007
--- /tmp/getb2111	Thu Dec 27 12:14:50 2007
***************
*** 3,9 ****
  ** 2006-07-17 by Arthur David Olson.
  */
  
! static char	elsieid[] = "@(#)zic.c	8.16";
  
  #include "private.h"
  #include "locale.h"
--- 3,9 ----
  ** 2006-07-17 by Arthur David Olson.
  */
  
! static char	elsieid[] = "@(#)zic.c	8.17";
  
  #include "private.h"
  #include "locale.h"
***************
*** 160,169 ****
  static void	writezone(const char * name, const char * string);
  static int	yearistype(int year, const char * type);
  
- #if !HAVE_STRERROR
- static char *	strerror(int);
- #endif /* !HAVE_STRERROR */
- 
  static int		charcnt;
  static int		errors;
  static const char *	filename;
--- 160,165 ----
***************
*** 405,423 ****
  ** Error handling.
  */
  
- #if !HAVE_STRERROR
- static char *
- strerror(errnum)
- int	errnum;
- {
- 	extern char *	sys_errlist[];
- 	extern int	sys_nerr;
- 
- 	return (errnum > 0 && errnum <= sys_nerr) ?
- 		sys_errlist[errnum] : _("Unknown system error");
- }
- #endif /* !HAVE_STRERROR */
- 
  static void
  eats(name, num, rname, rnum)
  const char * const	name;
--- 401,406 ----




More information about the tz mailing list