# HG changeset patch # User Richard M. Stallman # Date 810706844 0 # Node ID 6ad7dc19b52625eba4b10a4c359aab1042f01c56 # Parent 0c0845233fa6dad9a28cad90efe640f87197f28e (main): Call tzset only if LOCALTIME_CACHE is defined; not all Suns have this bug. diff -r 0c0845233fa6 -r 6ad7dc19b526 src/emacs.c --- a/src/emacs.c Sun Sep 10 04:18:58 1995 +0000 +++ b/src/emacs.c Sun Sep 10 04:20:44 1995 +0000 @@ -911,14 +911,14 @@ initialized = 1; -#if defined (sun) || defined (LOCALTIME_CACHE) - /* sun's localtime has a bug. it caches the value of the time +#ifdef LOCALTIME_CACHE + /* Some versions of localtime have a bug. They cache the value of the time zone rather than looking it up every time. Since localtime() is called to bolt the undumping time into the undumped emacs, this results in localtime ignoring the TZ environment variable. This flushes the new TZ value into localtime. */ tzset (); -#endif /* defined (sun) || defined (LOCALTIME_CACHE) */ +#endif /* defined (LOCALTIME_CACHE) */ /* Enter editor command loop. This never returns. */ Frecursive_edit ();