changeset 90456:fcea7075c583

(mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 16 Jun 2006 08:00:54 +0000
parents 36f59f74454a
children 48b05b7bf674
files src/macterm.c
diffstat 1 files changed, 3 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Wed Jun 14 04:19:26 2006 +0000
+++ b/src/macterm.c	Fri Jun 16 08:00:54 2006 +0000
@@ -10037,34 +10037,10 @@
   int charset_id, c1, c2;
 
   if (code < 0x80)
-    {
-      buf->kind = ASCII_KEYSTROKE_EVENT;
-      buf->code = code;
-    }
-  else if (code < 0x100)
-    {
-      if (code < 0xA0)
-	charset_id = CHARSET_8_BIT_CONTROL;
-      else
-	charset_id = charset_latin_iso8859_1;
-      buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
-      buf->code = MAKE_CHAR (charset_id, code, 0);
-    }
+    buf->kind = ASCII_KEYSTROKE_EVENT;
   else
-    {
-      if (code < 0x2500)
-	charset_id = charset_mule_unicode_0100_24ff,
-	  code -= 0x100;
-      else if (code < 0x33FF)
-	charset_id = charset_mule_unicode_2500_33ff,
-	  code -= 0x2500;
-      else if (code >= 0xE000)
-	charset_id = charset_mule_unicode_e000_ffff,
-	  code -= 0xE000;
-      c1 = (code / 96) + 32, c2 = (code % 96) + 32;
-      buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
-      buf->code = MAKE_CHAR (charset_id, c1, c2);
-    }
+    buf->kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
+  buf->code = code;
 }
 #endif