unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17714: 24.4.50; File coding system not detected correctly
@ 2014-06-06  8:24 Jorgen Schaefer
  2014-06-06  9:22 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Jorgen Schaefer @ 2014-06-06  8:24 UTC (permalink / raw)
  To: 17714

Since a few days ago, current trunk stopped detecting file coding
systems correctly for me. For a file that is opened as utf-8 with stable
Emacs, it now says (using emacs -q, fundamental-mode):

-----
buffer-file-coding-system is a variable defined in `C source code'.
Its value is no-conversion
Local in buffer Todo; global value is utf-8-unix
-----

M-x revert-buffer-with-coding-system RET utf-8 RET works fine.


Configured using:
 `configure --without-x'

Configured features:
SOUND NOTIFY LIBXML2 ZLIB

Important settings:
  value of $LC_ALL: 
  value of $LC_COLLATE: de_DE.UTF-8
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_MESSAGES: POSIX
  value of $LC_MONETARY: POSIX
  value of $LC_NUMERIC: POSIX
  value of $LC_TIME: POSIX
  value of $LANG: POSIX
  locale-coding-system: utf-8-unix





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17714: 24.4.50; File coding system not detected correctly
  2014-06-06  8:24 bug#17714: 24.4.50; File coding system not detected correctly Jorgen Schaefer
@ 2014-06-06  9:22 ` Eli Zaretskii
  2014-06-06  9:51   ` Jorgen Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2014-06-06  9:22 UTC (permalink / raw)
  To: Jorgen Schaefer; +Cc: 17714

> From: Jorgen Schaefer <forcer@forcix.cx>
> Date: Fri, 06 Jun 2014 10:24:53 +0200
> 
> Since a few days ago, current trunk stopped detecting file coding
> systems correctly for me. For a file that is opened as utf-8 with stable
> Emacs, it now says (using emacs -q, fundamental-mode):
> 
> -----
> buffer-file-coding-system is a variable defined in `C source code'.
> Its value is no-conversion
> Local in buffer Todo; global value is utf-8-unix
> -----
> 
> M-x revert-buffer-with-coding-system RET utf-8 RET works fine.

Please send an example file where you see this problem.

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17714: 24.4.50; File coding system not detected correctly
  2014-06-06  9:22 ` Eli Zaretskii
@ 2014-06-06  9:51   ` Jorgen Schaefer
  2014-06-06 11:44     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Jorgen Schaefer @ 2014-06-06  9:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 17714-done

On Fri, 06 Jun 2014 12:22:15 +0300
Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Jorgen Schaefer <forcer@forcix.cx>
> > Date: Fri, 06 Jun 2014 10:24:53 +0200
> > 
> > Since a few days ago, current trunk stopped detecting file coding
> > systems correctly for me. For a file that is opened as utf-8 with
> > stable Emacs, it now says (using emacs -q, fundamental-mode):
> > 
> > -----
> > buffer-file-coding-system is a variable defined in `C source code'.
> > Its value is no-conversion
> > Local in buffer Todo; global value is utf-8-unix
> > -----
> > 
> > M-x revert-buffer-with-coding-system RET utf-8 RET works fine.
> 
> Please send an example file where you see this problem.

Hm. I *thought* I had seen the problem with more than one file, but it
turns out it was only one. The problem was that the file contained ^@
(zero bytes) from a yank from some process output. Which of course is
not valid utf-8.

Now I wonder why the file saved without error. There was some weird
vc error as well. Can't reproduce this now, though. So meh.

Sorry for the noise, nothing to see here. :-)

Jorgen





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#17714: 24.4.50; File coding system not detected correctly
  2014-06-06  9:51   ` Jorgen Schaefer
@ 2014-06-06 11:44     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2014-06-06 11:44 UTC (permalink / raw)
  To: Jorgen Schaefer; +Cc: 17714

> Date: Fri, 6 Jun 2014 11:51:57 +0200
> From: Jorgen Schaefer <forcer@forcix.cx>
> Cc: 17714-done@debbugs.gnu.org
> 
> On Fri, 06 Jun 2014 12:22:15 +0300
> Eli Zaretskii <eliz@gnu.org> wrote:
> 
> The problem was that the file contained ^@ (zero bytes) from a yank
> from some process output.

When Emacs sees a null byte in a file, it automatically falls back to
no-conversion.  You can inhibit that by setting
inhibit-null-byte-detection to non-nil (not that I advise that).

> Sorry for the noise, nothing to see here. :-)

No sweat.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-06 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06  8:24 bug#17714: 24.4.50; File coding system not detected correctly Jorgen Schaefer
2014-06-06  9:22 ` Eli Zaretskii
2014-06-06  9:51   ` Jorgen Schaefer
2014-06-06 11:44     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).