emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master db828f6: Don't rely on defaults in decoding UTF


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] master db828f6: Don't rely on defaults in decoding UTF-8 encoded Lisp files
Date: Thu, 24 Sep 2015 19:44:17 +0300

> Date: Mon, 21 Sep 2015 23:07:52 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> > Since Emacs-24.4 the coding-system Emacs uses for .el files is
> > `prefer-utf-8', i.e. it is explicitly defined to be "utf-8 if it is
> > valid"
> 
> I don't think prefer-utf-8 does what you say here.  In any case, I've
> seen the default decoding do incorrect things, and I see no reason to
> risk that in files we control.

Here's an example, btw:

  emacs -Q
  M-x set-locale-environment RET he_IL.ISO-8859-8 RET
  C-x C-f doc/lispref/tips.texi RET

The encoding-detection guesswork fails even with the current Git
master, let alone Emacs 24.5.  Use '(skip-chars-forward "\000-\177")'
to find the mess it produces.



reply via email to

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