From 063dfaf5e1a92dff8f0517259259dd6170e229e0 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 29 May 2003 13:18:47 +0000 Subject: [PATCH] (Finsert_file_contents): Even if we read into a unibyte buffer, check if we must decode the result or not. --- src/ChangeLog | 3 +++ src/fileio.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 651026fe86b..f629b4ec74f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -6,6 +6,9 @@ respectively. (decode_coding_gap): Run post-read-conversion if any. + * fileio.c (Finsert_file_contents): Even if we read into a + unibyte buffer, check if we must decode the result or not. + 2003-05-29 Kenichi Handa * coding.c (make_conversion_work_buffer): Change the work buffer diff --git a/src/fileio.c b/src/fileio.c index 24a3377f8e8..86ac8a32570 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4428,8 +4428,7 @@ actually used. */) current_buffer->enable_multibyte_characters = Qnil; } - if ((! NILP (current_buffer->enable_multibyte_characters) - || CODING_REQUIRE_DETECTION (&coding) + if ((CODING_REQUIRE_DETECTION (&coding) || CODING_REQUIRE_DECODING (&coding)) && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding))) { -- 2.39.2