diff options
| author | Miles Bader | 2007-06-11 00:58:11 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-06-11 00:58:11 +0000 |
| commit | fb9a13e3dca1685b81fcf4d345133fb34911594d (patch) | |
| tree | 181797239f450c33ca8fd0d4d18686bbfc68859d /src/editfns.c | |
| parent | 4d3e23e3e8273e820d69e0ecca0f409c4b9a179e (diff) | |
| parent | 2d715b39ea1c89066f469405d065dd1a6631d28e (diff) | |
| download | emacs-fb9a13e3dca1685b81fcf4d345133fb34911594d.tar.gz emacs-fb9a13e3dca1685b81fcf4d345133fb34911594d.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 781-792)
- Update from CVS
- Merge from gnus--rel--5.10
- Merge from emacs--rel--22
* emacs--rel--22 (patch 33-41)
* gnus--rel--5.10 (patch 226-228)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-219
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/editfns.c b/src/editfns.c index 6cdd63f2fd1..22aa47688a5 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1972,6 +1972,7 @@ the data it can't find. */) | |||
| 1972 | int offset = tm_diff (t, &gmt); | 1972 | int offset = tm_diff (t, &gmt); |
| 1973 | char *s = 0; | 1973 | char *s = 0; |
| 1974 | char buf[6]; | 1974 | char buf[6]; |
| 1975 | |||
| 1975 | #ifdef HAVE_TM_ZONE | 1976 | #ifdef HAVE_TM_ZONE |
| 1976 | if (t->tm_zone) | 1977 | if (t->tm_zone) |
| 1977 | s = (char *)t->tm_zone; | 1978 | s = (char *)t->tm_zone; |
| @@ -1982,19 +1983,6 @@ the data it can't find. */) | |||
| 1982 | #endif | 1983 | #endif |
| 1983 | #endif /* not HAVE_TM_ZONE */ | 1984 | #endif /* not HAVE_TM_ZONE */ |
| 1984 | 1985 | ||
| 1985 | #if defined HAVE_TM_ZONE || defined HAVE_TZNAME | ||
| 1986 | if (s) | ||
| 1987 | { | ||
| 1988 | /* On Japanese w32, we can get a Japanese string as time | ||
| 1989 | zone name. Don't accept that. */ | ||
| 1990 | char *p; | ||
| 1991 | for (p = s; *p && (isalnum ((unsigned char)*p) || *p == ' '); ++p) | ||
| 1992 | ; | ||
| 1993 | if (p == s || *p) | ||
| 1994 | s = NULL; | ||
| 1995 | } | ||
| 1996 | #endif | ||
| 1997 | |||
| 1998 | if (!s) | 1986 | if (!s) |
| 1999 | { | 1987 | { |
| 2000 | /* No local time zone name is available; use "+-NNNN" instead. */ | 1988 | /* No local time zone name is available; use "+-NNNN" instead. */ |
| @@ -2002,6 +1990,7 @@ the data it can't find. */) | |||
| 2002 | sprintf (buf, "%c%02d%02d", (offset < 0 ? '-' : '+'), am/60, am%60); | 1990 | sprintf (buf, "%c%02d%02d", (offset < 0 ? '-' : '+'), am/60, am%60); |
| 2003 | s = buf; | 1991 | s = buf; |
| 2004 | } | 1992 | } |
| 1993 | |||
| 2005 | return Fcons (make_number (offset), Fcons (build_string (s), Qnil)); | 1994 | return Fcons (make_number (offset), Fcons (build_string (s), Qnil)); |
| 2006 | } | 1995 | } |
| 2007 | else | 1996 | else |
| @@ -3174,7 +3163,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, | |||
| 3174 | { | 3163 | { |
| 3175 | validate_region (&start, &end); | 3164 | validate_region (&start, &end); |
| 3176 | if (XINT (start) == XINT (end)) | 3165 | if (XINT (start) == XINT (end)) |
| 3177 | return build_string (""); | 3166 | return empty_unibyte_string; |
| 3178 | return del_range_1 (XINT (start), XINT (end), 1, 1); | 3167 | return del_range_1 (XINT (start), XINT (end), 1, 1); |
| 3179 | } | 3168 | } |
| 3180 | 3169 | ||