This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2016-09-12.19:33:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473708835.14.0.84620259167.issue28108@psf.upfronthosting.co.za>
In-reply-to
Content
After running ./configure on Linux or MacOS X, check the generated pyconfig.h header:

$ grep TZNAME pyconfig.h
/* #undef HAVE_DECL_TZNAME */
/* #undef HAVE_TZNAME */

However, tzname exists and is declared in time.h on Linux and MacOS X as can be seen by compiling and running the following simple program:

$ cat tzname.c
#include <time.h>
#include <stdio.h>

int main() {
    tzset();
    printf("%s/%s\n", tzname[0], tzname[1]);
}
$ clang tzname.c -o tzname
$ ./tzname
EST/EDT

Note that tzname is mandated by the recent editions of POSIX <http://pubs.opengroup.org/onlinepubs/009695399/functions/tzset.html>, so I am not sure whether we need to check for it in configure.
History
Date User Action Args
2016-09-12 19:33:55belopolskysetrecipients: + belopolsky
2016-09-12 19:33:55belopolskysetmessageid: <1473708835.14.0.84620259167.issue28108@psf.upfronthosting.co.za>
2016-09-12 19:33:55belopolskylinkissue28108 messages
2016-09-12 19:33:54belopolskycreate