This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
timezone test for PR 1054+1056
- To: libc-alpha@cygnus.com
- Subject: timezone test for PR 1054+1056
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 30 Mar 1999 19:46:06 +0200
- Mail-Copies-To: never
The reported problems in PR 1054+1056 can be reproduced with
tst-timezone after applying the appended patch. Please note that
the current glibc version already computes GB (alias Europe/London)
right and miscalculates the timezone variable for the three other
values:
Timezone: Europe/Amsterdam, timezone is: -1168 but should be: -3600
Timezone: Europe/Amsterdam, timezone is: -1168 but should be: -3600
Timezone: America/Indianapolis, timezone is: 21600 but should be: 18000
Timezone: America/Indianapolis, timezone is: 21600 but should be: 18000
Timezone: Pacific/Auckland, timezone is: -41400 but should be: -43200
Timezone: Pacific/Auckland, timezone is: -41400 but should be: -43200
Andreas
1999-03-30 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* timezone/tst-timezone.c (tests): Add tests for Pacific/Auckland,
America/Indianapolis, Europe/London and Europe/Amsterdam to test
for bugs reported as PR libc/1054 and PR libc/1056.
--- timezone/tst-timezone.c.~1~ Tue Jan 12 07:12:26 1999
+++ timezone/tst-timezone.c Tue Mar 30 19:41:41 1999
@@ -35,13 +35,17 @@
static const struct test_times tests[] =
{
+ { "Europe/Amsterdam", 1, -3600, { "CET", "CEST" }},
{ "Europe/Berlin", 1, -3600, { "CET", "CEST" }},
+ { "Europe/London", 1, 0, { "GMT", "BST" }},
{ "Universal", 0, 0, {"UTC", "UTC" }},
{ "Australia/Melbourne", 1, -36000, { "EST", "EST" }},
{ "America/Sao_Paulo", 1, 10800, {"EST", "EDT" }},
{ "America/Chicago", 1, 21600, {"CST", "CDT" }},
{ "America/Los_Angeles", 1, 28800, {"PST", "PDT" }},
+ { "America/Indianapolis", 1, 18000, {"EST", "EDT" }},
{ "Asia/Tokyo", 0, -32400, {"JST", "JST" }},
+ { "Pacific/Auckland", 1, -43200, { "NZST", "NZDT" }},
{ NULL, 0, 0 }
};
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de