diff options
| author | Kenichi Handa | 2010-08-29 14:15:34 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-08-29 14:15:34 +0900 |
| commit | 769ae9e16f2d6eea60ca2ca6340f8e11fa49eafd (patch) | |
| tree | b8c48f4a5eeb97667c74f438e6ab7976989990d1 /src/term.c | |
| parent | f2b38ae6dd11ffd2778441afff616045b952d3cd (diff) | |
| download | emacs-769ae9e16f2d6eea60ca2ca6340f8e11fa49eafd.tar.gz emacs-769ae9e16f2d6eea60ca2ca6340f8e11fa49eafd.zip | |
term.c (encode_terminal_code): Encode byte chars to the correspnding bytes.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) | |||
| 695 | encode_terminal_src_size); | 695 | encode_terminal_src_size); |
| 696 | buf = encode_terminal_src + nbytes; | 696 | buf = encode_terminal_src + nbytes; |
| 697 | } | 697 | } |
| 698 | if (char_charset (c, charset_list, NULL)) | 698 | if (CHAR_BYTE8_P (c)) |
| 699 | { | ||
| 700 | *buf++ = CHAR_TO_BYTE8 (c); | ||
| 701 | nchars++; | ||
| 702 | } | ||
| 703 | else if (char_charset (c, charset_list, NULL)) | ||
| 699 | { | 704 | { |
| 700 | /* Store the multibyte form of C at BUF. */ | 705 | /* Store the multibyte form of C at BUF. */ |
| 701 | buf += CHAR_STRING (c, buf); | 706 | buf += CHAR_STRING (c, buf); |