]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 9a6b611c0dcc09d3dabf41da75086f17fd8559c1..2867a0dc23313ca3cda0a5bb0cc2eb93c6a25458 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);