Mercurial > emacs
comparison src/editfns.c @ 16918:ab49512bcdff
(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.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Wed, 22 Jan 1997 02:56:37 +0000 |
parents | 0b914fcd97a1 |
children | c612a2cdd83b |
comparison
equal
deleted
inserted
replaced
16917:5aabcff9fdd3 | 16918:ab49512bcdff |
---|---|
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 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
1017 environbuf = environ; | 1017 environbuf = environ; |
1018 | 1018 |
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 |
1026 storage, it runs afoul of bugs in SVR4 and Solaris 2.3. | 1029 storage, it runs afoul of bugs in SVR4 and Solaris 2.3. |
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 |
1030 static char set_time_zone_rule_tz1[] = "TZ=GMT0"; | 1033 static char set_time_zone_rule_tz1[] = "TZ=GMT+0"; |
1031 static char set_time_zone_rule_tz2[] = "TZ=GMT1"; | 1034 static 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 |
1035 responsibility to free. */ | 1040 responsibility to free. */ |
1036 void | 1041 void |