Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 110126:4ebf7a925b35 | 110130:ab4e82b8a3e1 |
|---|---|
| 693 encode_terminal_src_size = nbytes + MAX_MULTIBYTE_LENGTH; | 693 encode_terminal_src_size = nbytes + MAX_MULTIBYTE_LENGTH; |
| 694 encode_terminal_src = xrealloc (encode_terminal_src, | 694 encode_terminal_src = xrealloc (encode_terminal_src, |
| 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); |
| 702 nchars++; | 707 nchars++; |
| 703 } | 708 } |
