]> git.eshelyaron.com Git - emacs.git/commitdiff
term.c (encode_terminal_code): Encode byte chars to the correspnding bytes.
authorKenichi Handa <handa@m17n.org>
Sun, 29 Aug 2010 05:15:34 +0000 (14:15 +0900)
committerKenichi Handa <handa@m17n.org>
Sun, 29 Aug 2010 05:15:34 +0000 (14:15 +0900)
src/ChangeLog
src/term.c

index 5b4fac632bdbbab1dfeed36f2e0a9508b56eb90c..ec9e4a4d6cc8c022dd4b7c0d8de07b840825ebfa 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-29  Kenichi Handa  <handa@m17n.org>
+
+       * term.c (encode_terminal_code): Encode byte chars to the
+       correspnding bytes.
+
 2010-08-17  Andreas Schwab  <schwab@linux-m68k.org>
 
        * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
index 7adaeeac1ae4069496865b307d019faa682f9cb5..868b596dc1a0f4abcf488b582ed117ef4d4b8fd8 100644 (file)
@@ -695,7 +695,12 @@ encode_terminal_code (src, src_len, coding)
                                                  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);