Mercurial > emacs
comparison src/coding.c @ 88950:ad258ee59fbb
* coding.c (make_conversion_work_buffer): Adjusted for the change
of Fset_buffer_multibyte.
(encode_coding_raw_text): Increment p0 in the loop.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 31 Jul 2002 07:09:00 +0000 |
| parents | c6ed294ee664 |
| children | 3b05c02eebf2 |
comparison
equal
deleted
inserted
replaced
| 88949:57ca0c34b3be | 88950:ad258ee59fbb |
|---|---|
| 1592 code |= c & 0x7F; | 1592 code |= c & 0x7F; |
| 1593 break; | 1593 break; |
| 1594 | 1594 |
| 1595 case 1: | 1595 case 1: |
| 1596 code = c; | 1596 code = c; |
| 1597 charset = CHARSET_FROM_ID (ASCII_BYTE_P (code) ? charset_ascii | 1597 charset = CHARSET_FROM_ID (ASCII_BYTE_P (code) |
| 1598 : code < 0xA0 ? charset_8_bit_control | 1598 ? charset_ascii : charset_eight_bit); |
| 1599 : charset_8_bit_graphic); | |
| 1600 break; | 1599 break; |
| 1601 | 1600 |
| 1602 default: | 1601 default: |
| 1603 abort (); | 1602 abort (); |
| 1604 } | 1603 } |
| 4277 { | 4276 { |
| 4278 unsigned char str[MAX_MULTIBYTE_LENGTH], *p0 = str, *p1 = str; | 4277 unsigned char str[MAX_MULTIBYTE_LENGTH], *p0 = str, *p1 = str; |
| 4279 | 4278 |
| 4280 CHAR_STRING_ADVANCE (c, p1); | 4279 CHAR_STRING_ADVANCE (c, p1); |
| 4281 while (p0 < p1) | 4280 while (p0 < p1) |
| 4282 EMIT_ONE_BYTE (*p0); | 4281 { |
| 4282 EMIT_ONE_BYTE (*p0); | |
| 4283 p0++; | |
| 4284 } | |
| 4283 } | 4285 } |
| 4284 } | 4286 } |
| 4285 else | 4287 else |
| 4286 while (charbuf < charbuf_end) | 4288 while (charbuf < charbuf_end) |
| 4287 { | 4289 { |
| 5787 | 5789 |
| 5788 buf = XCAR (Vcode_conversion_work_buf_list); | 5790 buf = XCAR (Vcode_conversion_work_buf_list); |
| 5789 set_buffer_internal (XBUFFER (buf)); | 5791 set_buffer_internal (XBUFFER (buf)); |
| 5790 current_buffer->undo_list = Qt; | 5792 current_buffer->undo_list = Qt; |
| 5791 Ferase_buffer (); | 5793 Ferase_buffer (); |
| 5792 Fset_buffer_multibyte (multibytep ? Qt : Qnil); | 5794 Fset_buffer_multibyte (multibytep ? Qt : Qnil, Qnil); |
| 5793 set_buffer_internal (current); | 5795 set_buffer_internal (current); |
| 5794 return buf; | 5796 return buf; |
| 5795 } | 5797 } |
| 5796 | 5798 |
| 5797 static struct coding_system *saved_coding; | 5799 static struct coding_system *saved_coding; |
