Mercurial > emacs
changeset 88690:7f284ac55b07
(encode_coding_emacs_mule): Pay attention to raw-8-bit chars.
(encode_coding_iso_2022): Likewise.
(encode_coding_sjis): Likewise.
(encode_coding_big5): Likewise.
(encode_coding_charset): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 31 May 2002 01:03:50 +0000 |
parents | e324faed6fcc |
children | d080fd934431 |
files | src/coding.c |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Thu May 30 21:52:50 2002 +0000 +++ b/src/coding.c Fri May 31 01:03:50 2002 +0000 @@ -1999,6 +1999,11 @@ c = *charbuf++; if (ASCII_CHAR_P (c)) EMIT_ONE_ASCII_BYTE (c); + else if (CHAR_BYTE8_P (c)) + { + c = CHAR_TO_BYTE8 (c); + EMIT_ONE_BYTE (c); + } else { struct charset *charset; @@ -3555,6 +3560,11 @@ ENCODE_ISO_CHARACTER (charset, c); } } + else if (CHAR_BYTE8_P (c)) + { + c = CHAR_TO_BYTE8 (c); + EMIT_ONE_BYTE (c); + } else { struct charset *charset = char_charset (c, charset_list, NULL); @@ -3925,6 +3935,11 @@ /* Now encode the character C. */ if (ASCII_CHAR_P (c) && ascii_compatible) EMIT_ONE_ASCII_BYTE (c); + else if (CHAR_BYTE8_P (c)) + { + c = CHAR_TO_BYTE8 (c); + EMIT_ONE_BYTE (c); + } else { unsigned code; @@ -3993,6 +4008,11 @@ /* Now encode the character C. */ if (ASCII_CHAR_P (c) && ascii_compatible) EMIT_ONE_ASCII_BYTE (c); + else if (CHAR_BYTE8_P (c)) + { + c = CHAR_TO_BYTE8 (c); + EMIT_ONE_BYTE (c); + } else { unsigned code; @@ -4475,6 +4495,11 @@ c = *charbuf++; if (ascii_compatible && ASCII_CHAR_P (c)) EMIT_ONE_ASCII_BYTE (c); + else if (CHAR_BYTE8_P (c)) + { + c = CHAR_TO_BYTE8 (c); + EMIT_ONE_BYTE (c); + } else { charset = char_charset (c, charset_list, &code);