Variable: inhibit-null-byte-detection

inhibit-null-byte-detection is a variable defined in coding.c.

Value

nil

Documentation

If non-nil, Emacs ignores null bytes on code detection.

By default, Emacs treats it as binary data, and does not attempt to decode it. The effect is as if you specified no-conversion for reading that text.

Set this to non-nil when a regular text happens to include null bytes. Examples are Index nodes of Info files and null-byte delimited output from GNU Find and GNU Grep. Emacs will then ignore the null bytes and decode text as usual.

View in manual

Probably introduced at or before Emacs version 23.1.

Aliases

inhibit-nul-byte-detection (obsolete since 28.1)

Source Code

// Defined in /usr/src/emacs/src/coding.c
  DEFVAR_BOOL ("inhibit-null-byte-detection",
	       inhibit_null_byte_detection,
	       doc: /* If non-nil, Emacs ignores null bytes on code detection.
By default, Emacs treats it as binary data, and does not attempt to
decode it.  The effect is as if you specified `no-conversion' for
reading that text.

Set this to non-nil when a regular text happens to include null bytes.
Examples are Index nodes of Info files and null-byte delimited output
from GNU Find and GNU Grep.  Emacs will then ignore the null bytes and
decode text as usual.  */);