diff src/term.c @ 110130:ab4e82b8a3e1

term.c (encode_terminal_code): Encode byte chars to the correspnding bytes.
author Kenichi Handa <handa@m17n.org>
date Sun, 29 Aug 2010 14:24:08 +0900
parents c896870df404
children cca2a663ef92
line wrap: on
line diff
--- a/src/term.c	Sat Aug 28 13:01:36 2010 -0700
+++ b/src/term.c	Sun Aug 29 14:24:08 2010 +0900
@@ -695,7 +695,12 @@
 						  encode_terminal_src_size);
 		  buf = encode_terminal_src + nbytes;
 		}
-	      if (char_charset (c, charset_list, NULL))
+	      if (CHAR_BYTE8_P (c))
+		{
+		  *buf++ = CHAR_TO_BYTE8 (c);
+		  nchars++;
+		}
+	      else if (char_charset (c, charset_list, NULL))
 		{
 		  /* Store the multibyte form of C at BUF.  */
 		  buf += CHAR_STRING (c, buf);