From dcd50550895047d3e60305ac4cc1c29447346ae4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 12 Jun 2002 00:57:16 +0000 Subject: [PATCH] (Ffind_charset_string): Setup the vector `charsets' correctly. --- src/charset.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/charset.c b/src/charset.c index 2425e18c58e..0ef023a3df2 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1366,6 +1366,8 @@ only `ascii', `eight-bit-control', and `eight-bit-graphic'. */) CHECK_STRING (str); charsets = Fmake_vector (make_number (charset_table_used), Qnil); + for (i = 0; i < charset_table_used; i++) + ASET (charsets, i, Fcons (make_number (i), Qnil)); find_charsets_in_text (XSTRING (str)->data, XSTRING (str)->size, STRING_BYTES (XSTRING (str)), charsets, table); -- 2.39.5