mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 16:41:45 -08:00
(Finsert_file_contents): If reading into a unibyte
buffer, suppress character code conversion.
This commit is contained in:
parent
09494912d9
commit
237a6fd294
1 changed files with 7 additions and 7 deletions
14
src/fileio.c
14
src/fileio.c
|
|
@ -3539,10 +3539,10 @@ actually used.")
|
|||
|
||||
setup_coding_system (Fcheck_coding_system (val), &coding);
|
||||
|
||||
if (NILP (Vcoding_system_for_read)
|
||||
&& NILP (current_buffer->enable_multibyte_characters))
|
||||
/* We must suppress all text conversion except for end-of-line
|
||||
conversion. */
|
||||
if (NILP (current_buffer->enable_multibyte_characters)
|
||||
&& ! NILP (val))
|
||||
/* We must suppress all character code conversion except for
|
||||
end-of-line conversion. */
|
||||
setup_raw_text_coding_system (&coding);
|
||||
|
||||
coding_system_decided = 1;
|
||||
|
|
@ -4080,9 +4080,9 @@ actually used.")
|
|||
bcopy (&temp_coding, &coding, sizeof coding);
|
||||
}
|
||||
|
||||
if (NILP (Vcoding_system_for_read)
|
||||
&& NILP (current_buffer->enable_multibyte_characters))
|
||||
/* We must suppress all text conversion except for
|
||||
if (NILP (current_buffer->enable_multibyte_characters)
|
||||
&& ! NILP (val))
|
||||
/* We must suppress all character code conversion except for
|
||||
end-of-line conversion. */
|
||||
setup_raw_text_coding_system (&coding);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue