On 20 February 2016 at 12:16, Eli Zaretskii <eliz@gnu.org> wrote:

The most we can do is display a warning and ask for confirmation when
the values of buffer-file-coding-system differ between the patch
file's buffer and the buffer of file to be patched.  Will that be
sufficient?

Thanks for your analysis. ​This solution sounds fine to me: ​as you say, in general it's impossible to tell exactly what went wrong, but we can warn the user so that the unfortunate result I described is not obtained silently.

--