Mailing List Archive

Doing the "right thing" with timezones on Linux (patch)
Jonathan Giddy wrote in message <7dp9tm$hv2$1@towncrier.cc.monash.edu.au>...
>Guido van Rossum <guido@CNRI.Reston.VA.US> writes:
>
>I'm not sure whether it actually affects the code itself, but the comment
>#else /* !HAVE_TZNAME && !__GNU_LIBRARY__ */
>is actually:
>#else /* !HAVE_TZNAME || __GNU_LIBRARY__ */


Incorrect -- it should be:

#else /* !( HAVE_TZNAME || __GNU_LIBRARY__ ) */

Note the order of operations. Unary ! has higher precedence than || in C.

Just thought I'd mention this... :)