[PATCH 2/6] time_rz: make a constant 'const'

2015-07-25 Thread Paul Eggert
* lib/time_rz.c (local_tz): Now const. --- ChangeLog | 3 +++ lib/time_rz.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e2b368d..eeb37db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-07-25 Paul Eggert + time_rz: ma

[PATCH 5/6] test-strftime: test for Solaris bug

2015-07-25 Thread Paul Eggert
* modules/strftime-tests (Depends-on): Add strerror. * tests/test-strftime.c: Include . (posixtm_test): New function, containing the old 'main'. (struct tzalloc_test, struct localtime_rz_test): New types. (TZ, LT): New static vars. (tzalloc_test): New function. (main): Rewrite in terms of posixtm_t

[PATCH 4/6] time_rz: port to Solaris etc.

2015-07-25 Thread Paul Eggert
Works around a tzname problem on platforms like Solaris that have tzname but not tm_zone, by setting tzname at the appropriate time and restoring it later. * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]: New static vars. (save_abbr) [HAVE_TZNAME]: Set them. (revert_tz) [HAVE_TZNAME]:

[PATCH 6/6] strftime: fix newly-introduced bug on Solaris

2015-07-25 Thread Paul Eggert
* lib/strftime.c (strftime_case_): Set the local variable 'zone' consistently at the start, rather than doing some of the setup at the start and some in the %Z format spec. This is cleaner, and works better with time_rz on platforms like Solaris where struct tm lacks a tm_zone member, as when !HAV

[PATCH 3/6] time_rz: now LGPL

2015-07-25 Thread Paul Eggert
* modules/time_rz (License): Now LGPL, because strftime depends on it. --- ChangeLog | 3 +++ modules/time_rz | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index eeb37db..a803c15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2015-07-25

[PATCH 1/6] time_rz: fix off-by-one typo

2015-07-25 Thread Paul Eggert
* lib/time_rz.c (extend_abbrs): Fix off-by-one typo. --- ChangeLog | 5 + lib/time_rz.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0b0fc02..e2b368d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-07-25 Paul Eggert + +