[ python-Bugs-1096244 ] time.tzset() not built on Solaris

SourceForge.net noreply at sourceforge.net
Wed Jan 5 06:26:56 CET 2005


Bugs item #1096244, was opened at 2005-01-05 16:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1096244&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory Bond (gnbond)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.tzset() not built on Solaris

Initial Comment:
The time.tzset() function is not included in Solaris
builds, because the code in configure.in that checks
for the existence of tzset() relies on struct tm having
a tm_zone member - which Solaris does not have (at
least not up to 2.8).

The attached patch to configure.in allows Solaris to
detect the existence of tzset() and Python builds OK,
and the resulting time.tzset() function seems to work
just fine.

diff -u configure.in.DIST configure.in
--- configure.in.DIST   2005-01-05 16:25:24.830001000 +1100
+++ configure.in        2005-01-05 16:25:38.227000000 +1100
@@ -2912,10 +2912,6 @@
        tzset();
        if (localtime(&groundhogday)->tm_hour != 11)
            exit(1);
-       if (strcmp(localtime(&groundhogday)->tm_zone,
"AEDT"))
-           exit(1);
-       if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
-           exit(1);
 
        exit(0);
 }


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1096244&group_id=5470


More information about the Python-bugs-list mailing list