changeset 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 8522d9f71ac3
children 178720d9eaff
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Mon May 19 13:02:16 2003 +0000
+++ b/src/coding.c	Mon May 19 13:02:39 2003 +0000
@@ -5986,7 +5986,9 @@
       shrinked_bytes = from + (SBYTES (str) - to_byte);
     }
 
-  if (!require_decoding)
+  if (!require_decoding
+      && !(SYMBOLP (coding->post_read_conversion)
+	   && !NILP (Ffboundp (coding->post_read_conversion))))
     {
       coding->consumed = SBYTES (str);
       coding->consumed_char = SCHARS (str);