summaryrefslogtreecommitdiff
path: root/src/charset.h
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2004-09-19 03:59:24 +0000
committerKenichi Handa <handa@m17n.org>2004-09-19 03:59:24 +0000
commitec91b3c9d25ea5171e3ffd15639f6a75ffe1650c (patch)
tree01596852da976f0121c3dda41d7aa864bd2383d4 /src/charset.h
parentc067d39f19394fe777c955add7ce089cbe756d7b (diff)
downloademacs-ec91b3c9d25ea5171e3ffd15639f6a75ffe1650c.tar.gz
(CHAR_CHARSET): Shortcut for ASCII case.
Diffstat (limited to 'src/charset.h')
-rw-r--r--src/charset.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charset.h b/src/charset.h
index 9213853ea5c..f9519068948 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -371,8 +371,9 @@ extern struct charset *emacs_mule_charset[256];
/* 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