[issue28108] Python configure fails to detect tzname on platforms that have it.

2019-01-04 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35385. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28108] Python configure fails to detect tzname on platforms that have it.

2018-12-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: The resolution of this [1] glibc bug report effectively says that the use of global variables tzname, timezone and daylight is not supported by glibc unless a POSIX-style TZ setting is used (which is probably never in real world). [1]

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I don't think tzname is really all that useful. I agree. More so after issue 25283 (Make tm_gmtoff and tm_zone available on all platforms). That's why I don't see why the time module need to set tzname to anything other than what the C library does.

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: > The real issue is that when setting the tzname tuple in the time module, we > use a guess based on the value of tm_zone probed in June and January. I am > not sure whether this is wise. Shouldn't we just use C tzname is it is > available? I don't

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The real issue is that when setting the tzname tuple in the time module, we use a guess based on the value of tm_zone probed in June and January. I am not sure whether this is wise. Shouldn't we just use C tzname is it is available? --

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: If you want to separately check for the definition of tzname, I guess you have to add a AC_DEFINE() section specifically for tzname. -- ___ Python tracker

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > HAVE_TZNAME is only set iff struct tm does not have a tm_zone member ... I've figured that much from reading the generated configure script, but thanks for the pointer to the documentation. -- ___ Python

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Looking at the autoconf documentation, HAVE_TZNAME is only set iff struct tm does not have a tm_zone member *and* the external array tzname is found: https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/Particular-Structures.html If the

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +haypo, lemburg ___ Python tracker ___

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: 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