bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21602: 25.0.50; coding system seg fault


From: Andreas Schwab
Subject: bug#21602: 25.0.50; coding system seg fault
Date: Sat, 03 Oct 2015 14:07:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> diff --git a/src/fileio.c b/src/fileio.c
> index e4b255a..65aaf57 100644
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -3470,7 +3470,10 @@ by calling `format-decode', which see.  */)
>        mtime = time_error_value (save_errno);
>        st.st_size = -1;
>        if (!NILP (Vcoding_system_for_read))
> -     Fset (Qbuffer_file_coding_system, Vcoding_system_for_read);
> +     {
> +       CHECK_CODING_SYSTEM (Vcoding_system_for_read);
> +       Fset (Qbuffer_file_coding_system, Vcoding_system_for_read);
> +     }

This is not needed, it is already checked later.  If
buffer-file-coding-system cannot tolerate a non-coding-system then
checks must be added somewhere else.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]