From c732cc73bac471a23c12a03f76de63038d0a0a03 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 3 Jul 2002 22:14:32 +0000 Subject: [PATCH] (decode_mode_spec_coding): Use CHARACTERP. --- src/xdisp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index a35145cf381..6c9b2709e9c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13988,8 +13988,7 @@ decode_mode_spec_coding (coding_system, buf, eol_flag) eol_str = XSTRING (eoltype)->data; eol_str_len = XSTRING (eoltype)->size; } - else if (INTEGERP (eoltype) - && CHAR_VALID_P (XINT (eoltype), 0)) + else if (CHARACTERP (eoltype)) { eol_str = (unsigned char *) alloca (MAX_MULTIBYTE_LENGTH); eol_str_len = CHAR_STRING (XINT (eoltype), eol_str); -- 2.39.5