diff src/emacs.c @ 815:6aabed5f5d58

entered into RCS
author Jim Blandy <jimb@redhat.com>
date Fri, 17 Jul 1992 20:35:53 +0000
parents f2efaa0394de
children 4441c4bcb376
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 */