From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leif Strand Newsgroups: gmane.emacs.bugs Subject: bug#4924: Emacs No Longer Reads Mac Text Files Date: Mon, 16 Nov 2009 18:13:53 -0800 Message-ID: <4B0206E1.3010905@geodynamics.org> References: <4AFE0A0E.4050709@geodynamics.org> <4B01B0FC.4090505@geodynamics.org> Reply-To: Leif Strand , 4924@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258437332 15998 80.91.229.12 (17 Nov 2009 05:55:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 05:55:32 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 4924@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 06:55:24 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAH2C-0006XH-Gp for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 06:55:24 +0100 Original-Received: from localhost ([127.0.0.1]:51774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAH2C-0006XR-6H for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 00:55:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NADmz-0003kB-3T for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 21:27:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NADmu-0003iw-56 for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 21:27:28 -0500 Original-Received: from [199.232.76.173] (port=48863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NADmu-0003im-1a for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 21:27:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51938) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NADms-0003X2-W4 for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 21:27:23 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAH2RKqs004028; Mon, 16 Nov 2009 18:27:20 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAH2K5AS003411; Mon, 16 Nov 2009 18:20:05 -0800 Resent-Date: Mon, 16 Nov 2009 18:20:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leif Strand Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 17 Nov 2009 02:20:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4924 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4924-submit@emacsbugs.donarmstrong.com id=B4924.12584240362845 (code B ref 4924); Tue, 17 Nov 2009 02:20:05 +0000 Original-Received: (at 4924) by emacsbugs.donarmstrong.com; 17 Nov 2009 02:13:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from geodynamics.org (geodynamics.org [131.215.145.140]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAH2DtcD002841 for <4924@emacsbugs.donarmstrong.com>; Mon, 16 Nov 2009 18:13:56 -0800 Original-Received: from localhost (localhost [127.0.0.1]) by geodynamics.org (Postfix) with ESMTP id 1EB8C10076D3D; Mon, 16 Nov 2009 18:13:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at geodynamics.org Original-Received: from geodynamics.org ([127.0.0.1]) by localhost (geodynamics.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OvpWDrxDdHWu; Mon, 16 Nov 2009 18:13:54 -0800 (PST) Original-Received: from [131.215.144.161] (crust.geodynamics.org [131.215.144.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by geodynamics.org (Postfix) with ESMTPSA id 6CA1610076D3A; Mon, 16 Nov 2009 18:13:54 -0800 (PST) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 16 Nov 2009 21:27:28 -0500 X-Mailman-Approved-At: Tue, 17 Nov 2009 00:54:56 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32663 Archived-At: 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@geodynamics.org>, Leif Strand 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@m17n.org