changeset 815:6aabed5f5d58

entered into RCS
author Jim Blandy <jimb@redhat.com>
date Fri, 17 Jul 1992 20:35:53 +0000
parents 38b2499cb3e9
children fc1f790220a4
files src/emacs.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Fri Jul 17 20:24:00 1992 +0000
+++ b/src/emacs.c	Fri Jul 17 20:35:53 1992 +0000
@@ -549,6 +549,15 @@
 
   initialized = 1;
 
+#ifdef sun
+  /* sun's localtime() has a bug.  it caches 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 /* sun */
+
   /* Enter editor command loop.  This never returns.  */
   Frecursive_edit ();
   /* NOTREACHED */