# HG changeset patch # User Kenichi Handa # Date 1095566364 0 # Node ID b27fcfc48d2e69fa52dba4d078088d98bdcf098e # Parent 2e44ef8c14b42a6666665a6fcd8d502fd41e8dc2 (CHAR_CHARSET): Shortcut for ASCII case. diff -r 2e44ef8c14b4 -r b27fcfc48d2e src/charset.h --- a/src/charset.h Fri Sep 17 14:31:05 2004 +0000 +++ b/src/charset.h Sun Sep 19 03:59:24 2004 +0000 @@ -371,8 +371,9 @@ /* Lookup Vcharset_order_list and return the first charset that contains the character C. */ -#define CHAR_CHARSET(c) \ - char_charset ((c), Qnil, NULL) +#define CHAR_CHARSET(c) \ + ((c) < 0x80 ? CHARSET_FROM_ID (charset_ascii) \ + : char_charset ((c), Qnil, NULL)) #if 0 /* Char-table of charset-sets. Each element is a bool vector indexed