From: Kenichi Handa Date: Sun, 29 Aug 2010 05:15:34 +0000 (+0900) Subject: term.c (encode_terminal_code): Encode byte chars to the correspnding bytes. X-Git-Tag: emacs-pretest-23.2.90~138 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=769ae9e16f2d6eea60ca2ca6340f8e11fa49eafd;p=emacs.git term.c (encode_terminal_code): Encode byte chars to the correspnding bytes. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5b4fac632bd..ec9e4a4d6cc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-08-29 Kenichi Handa + + * term.c (encode_terminal_code): Encode byte chars to the + correspnding bytes. + 2010-08-17 Andreas Schwab * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP diff --git a/src/term.c b/src/term.c index 7adaeeac1ae..868b596dc1a 100644 --- a/src/term.c +++ b/src/term.c @@ -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);