From c1fd92320cf71a46a1350c75292d5f9f47bf88f3 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 18 Jul 2001 20:42:40 +0000 Subject: [PATCH] * fns.c (Fset_char_table_default): Check that a charset is defined before checking its dimension. --- src/ChangeLog | 5 +++++ src/fns.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c47a6b633f5..9202673757e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-07-18 Ken Raeburn + + * fns.c (Fset_char_table_default): Check that a charset is defined + before checking its dimension. + 2001-07-17 Ken Raeburn * coding.c (setup_coding_system): Don't do any designation based diff --git a/src/fns.c b/src/fns.c index 2b398e08ce5..ba1498f0f89 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2353,7 +2353,7 @@ See also the documentation of make-char.") /* Even if C is not a generic char, we had better behave as if a generic char is specified. */ - if (CHARSET_DIMENSION (charset) == 1) + if (!CHARSET_DEFINED_P (charset) || CHARSET_DIMENSION (charset) == 1) code1 = 0; temp = XCHAR_TABLE (char_table)->contents[charset + 128]; if (!code1) -- 2.39.2