diff options
| author | Paul Eggert | 2012-08-16 14:58:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-16 14:58:44 -0700 |
| commit | 620f13b0612810324592ab2d2b4e5a5dab27f981 (patch) | |
| tree | 844d21f0c90ede1887eb699058398f5f9a81f069 /src/sysdep.c | |
| parent | 85c2386bbe5d7957cf5750b6f96b2868f83eedf4 (diff) | |
| download | emacs-620f13b0612810324592ab2d2b4e5a5dab27f981.tar.gz emacs-620f13b0612810324592ab2d2b4e5a5dab27f981.zip | |
Use ASCII tests for character types.
* admin/merge-gnulib (GNULIB_MODULES): Add c-ctype.
* lwlib/lwlib-Xaw.c, lwlib/lwlib.c, lwlib/xlwmenu.c:
Don't include <ctype.h>; no longer needed.
* lwlib/lwlib-Xaw.c (openFont):
* lwlib/xlwmenu.c (openXftFont): Test just for ASCII digits.
* src/category.c, src/dispnew.c, src/doprnt.c, src/editfns.c, src/syntax.c
* src/term.c, src/xfns.c, src/xterm.c:
Don't include <ctype.h>; was not needed.
* src/charset.c, src/doc.c, src/fileio.c, src/font.c, src/frame.c:
* src/gtkutil.c, src/image.c, src/sysdep.c, src/xfaces.c:
Include <c-ctype.h> instead of <ctype.h>.
* src/nsterm.m: Include <c-ctype.h>.
* src/charset.c (read_hex):
* src/doc.c (Fsnarf_documentation):
* src/fileio.c (IS_DRIVE) [WINDOWSNT]:
(DRIVE_LETTER) [DOS_NT]:
(Ffile_name_directory, Fexpand_file_name)
(Fsubstitute_in_file_name):
* src/font.c (font_parse_xlfd, font_parse_fcname):
* src/frame.c (x_set_font_backend):
* src/gtkutil.c (xg_get_font):
* src/image.c (xbm_scan, xpm_scan, pbm_scan_number):
* src/nsimage.m (hexchar):
* src/nsterm.m (ns_xlfd_to_fontname):
* src/sysdep.c (system_process_attributes):
* src/xfaces.c (hash_string_case_insensitive):
Use C-locale tests instead of locale-specific tests for character
types, since we want the ASCII interpretation here, not the
interpretation suitable for whatever happens to be the current locale.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 01ca905a987..1dbe8938e46 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | 21 | ||
| 22 | #define SYSTIME_INLINE EXTERN_INLINE | 22 | #define SYSTIME_INLINE EXTERN_INLINE |
| 23 | 23 | ||
| 24 | #include <ctype.h> | ||
| 25 | #include <signal.h> | 24 | #include <signal.h> |
| 26 | #include <stdio.h> | 25 | #include <stdio.h> |
| 27 | #include <setjmp.h> | 26 | #include <setjmp.h> |
| @@ -33,6 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #include <unistd.h> | 32 | #include <unistd.h> |
| 34 | 33 | ||
| 35 | #include <allocator.h> | 34 | #include <allocator.h> |
| 35 | #include <c-ctype.h> | ||
| 36 | #include <careadlinkat.h> | 36 | #include <careadlinkat.h> |
| 37 | #include <ignore-value.h> | 37 | #include <ignore-value.h> |
| 38 | #include <utimens.h> | 38 | #include <utimens.h> |
| @@ -2733,7 +2733,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 2733 | if (emacs_read (fd, &ch, 1) != 1) | 2733 | if (emacs_read (fd, &ch, 1) != 1) |
| 2734 | break; | 2734 | break; |
| 2735 | c = ch; | 2735 | c = ch; |
| 2736 | if (isspace (c) || c == '\\') | 2736 | if (c_isspace (c) || c == '\\') |
| 2737 | cmdline_size++; /* for later quoting, see below */ | 2737 | cmdline_size++; /* for later quoting, see below */ |
| 2738 | } | 2738 | } |
| 2739 | if (cmdline_size) | 2739 | if (cmdline_size) |
| @@ -2757,7 +2757,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 2757 | for (p = cmdline; p < cmdline + nread; p++) | 2757 | for (p = cmdline; p < cmdline + nread; p++) |
| 2758 | { | 2758 | { |
| 2759 | /* Escape-quote whitespace and backslashes. */ | 2759 | /* Escape-quote whitespace and backslashes. */ |
| 2760 | if (isspace (*p) || *p == '\\') | 2760 | if (c_isspace (*p) || *p == '\\') |
| 2761 | { | 2761 | { |
| 2762 | memmove (p + 1, p, nread - (p - cmdline)); | 2762 | memmove (p + 1, p, nread - (p - cmdline)); |
| 2763 | nread++; | 2763 | nread++; |