GNU bug report logs -
#4924
Emacs No Longer Reads Mac Text Files
Previous Next
Full log
View this message in rfc822 format
I added "(setq inhibit-null-byte-detection 1)" to my .emacs, and now
everything works like a charm. Thanks!!!
--Leif
Kenichi Handa wrote:
> In article <4B01B0FC.4090505 <at> geodynamics.org>, Leif Strand <leif <at> geodynamics.org> writes:
>
>> Glad to hear that CR support is still there. Indeed, I've played with
>> it a bit more, and it seems that trivial examples do work.
>
>> I can't figure out what algorithm Emacs is using to guess the kind of
>> text file. So anyway, I've attached a tarball containing two files:
>
>> * ozymandias.txt: This a trivial example which does work. It was
>> created in BBEdit 4.5.
>
>> * SqueakV1-18.sources: This is the file that triggered my complaint.
>> Emacs 21 correctly identified this as a Mac file. In Emacs v23.1.50.1,
>> I see one long line with a bunch of ^M characters.
>
> Emacs now detects a file that contains NULL bytes as binary
> file and use `no-conversion' for reading that file (see the
> docstring of the variable `inhibit-null-byte-detection').
> And SqueakV1-18.sources cotains NULL bytes at line 26527.
> When I delete that line, the file is correctly detected as
> Mac-eol format.
>
> ---
> Kenichi Handa
> handa <at> m17n.org
This bug report was last modified 15 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.