Mercurial > emacs
comparison src/coding.c @ 51090:269d016f45bd
(decode_coding_string): Handle post-read-conversion
even if the coding doesn't require decoding.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Mon, 19 May 2003 13:02:39 +0000 |
| parents | 0aba658cfdd2 |
| children | 94d903190cee |
comparison
equal
deleted
inserted
replaced
| 51089:8522d9f71ac3 | 51090:269d016f45bd |
|---|---|
| 5984 if (from == to_byte) | 5984 if (from == to_byte) |
| 5985 require_decoding = 0; | 5985 require_decoding = 0; |
| 5986 shrinked_bytes = from + (SBYTES (str) - to_byte); | 5986 shrinked_bytes = from + (SBYTES (str) - to_byte); |
| 5987 } | 5987 } |
| 5988 | 5988 |
| 5989 if (!require_decoding) | 5989 if (!require_decoding |
| 5990 && !(SYMBOLP (coding->post_read_conversion) | |
| 5991 && !NILP (Ffboundp (coding->post_read_conversion)))) | |
| 5990 { | 5992 { |
| 5991 coding->consumed = SBYTES (str); | 5993 coding->consumed = SBYTES (str); |
| 5992 coding->consumed_char = SCHARS (str); | 5994 coding->consumed_char = SCHARS (str); |
| 5993 if (coding->dst_multibyte) | 5995 if (coding->dst_multibyte) |
| 5994 { | 5996 { |
