(decode_coding_string): Handle post-read-conversion
authorKenichi Handa <handa@m17n.org>
Mon, 19 May 2003 13:02:39 +0000 (13:02 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 19 May 2003 13:02:39 +0000 (13:02 +0000)
even if the coding doesn't require decoding.

src/coding.c

index 9a6b611..2867a0d 100644 (file)
@@ -5986,7 +5986,9 @@ decode_coding_string (str, coding, nocopy)
       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);