aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert1997-01-22 02:56:37 +0000
committerPaul Eggert1997-01-22 02:56:37 +0000
commite0bf9fafdbd7e7c49089845fb918d07eb7403d63 (patch)
tree960fa693a0205272587202ab070ddaee19b9f31b
parent1ba46f7d631acd5e5c794aca1635e699fd4d308a (diff)
downloademacs-e0bf9fafdbd7e7c49089845fb918d07eb7403d63.tar.gz
emacs-e0bf9fafdbd7e7c49089845fb918d07eb7403d63.zip
(set_time_zone_rule_tz1, set_time_zone_rule_tz2):
Put "+" in value; needed if we are a Solaris 1 executable running under Solaris 2. Define these variables only if LOCALTIME_CACHE is defined.
-rw-r--r--src/editfns.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c
index af1c55318c4..5a2ca56ad5e 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1,5 +1,5 @@
1/* Lisp functions pertaining to editing. 1/* Lisp functions pertaining to editing.
2 Copyright (C) 1985,86,87,89,93,94,95,96 Free Software Foundation, Inc. 2 Copyright (C) 1985,86,87,89,93,94,95,96,97 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -1019,7 +1019,10 @@ If TZ is t, use Universal Time.")
1019 return Qnil; 1019 return Qnil;
1020} 1020}
1021 1021
1022/* These two values are known to load tz files in buggy implementations. 1022#ifdef LOCALTIME_CACHE
1023
1024/* These two values are known to load tz files in buggy implementations,
1025 i.e. Solaris 1 executables running under either Solaris 1 or Solaris 2.
1023 Their values shouldn't matter in non-buggy implementations. 1026 Their values shouldn't matter in non-buggy implementations.
1024 We don't use string literals for these strings, 1027 We don't use string literals for these strings,
1025 since if a string in the environment is in readonly 1028 since if a string in the environment is in readonly
@@ -1027,8 +1030,10 @@ If TZ is t, use Universal Time.")
1027 See Sun bugs 1113095 and 1114114, ``Timezone routines 1030 See Sun bugs 1113095 and 1114114, ``Timezone routines
1028 improperly modify environment''. */ 1031 improperly modify environment''. */
1029 1032
1030static char set_time_zone_rule_tz1[] = "TZ=GMT0"; 1033static char set_time_zone_rule_tz1[] = "TZ=GMT+0";
1031static char set_time_zone_rule_tz2[] = "TZ=GMT1"; 1034static char set_time_zone_rule_tz2[] = "TZ=GMT+1";
1035
1036#endif
1032 1037
1033/* Set the local time zone rule to TZSTRING. 1038/* Set the local time zone rule to TZSTRING.
1034 This allocates memory into `environ', which it is the caller's 1039 This allocates memory into `environ', which it is the caller's