From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#4924: Emacs No Longer Reads Mac Text Files Date: Tue, 17 Nov 2009 10:33:17 +0900 Message-ID: References: <4AFE0A0E.4050709@geodynamics.org> <4B01B0FC.4090505@geodynamics.org> Reply-To: Kenichi Handa , 4924@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258422463 19714 80.91.229.12 (17 Nov 2009 01:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 01:47:43 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 4924@emacsbugs.donarmstrong.com To: Leif Strand Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 17 02:47:36 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 1NADAN-0005s3-86 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Nov 2009 02:47:35 +0100 Original-Received: from localhost ([127.0.0.1]:59066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NADAM-0006sZ-MG for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Nov 2009 20:47:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NADAI-0006sT-MV for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:47:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NADAD-0006ra-F9 for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:47:30 -0500 Original-Received: from [199.232.76.173] (port=44600 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NADAD-0006rP-Az for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:47:25 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35280) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NADAC-0006Ph-Lb for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:47:25 -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 nAH1lM4A032597; Mon, 16 Nov 2009 17:47:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAH1Z4Sk031549; Mon, 16 Nov 2009 17:35:04 -0800 Resent-Date: Mon, 16 Nov 2009 17:35:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 17 Nov 2009 01:35:03 +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 submit@emacsbugs.donarmstrong.com id=B.125842161431444 (code B ref -1); Tue, 17 Nov 2009 01:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Nov 2009 01:33:34 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAH1XXj9031441 for ; Mon, 16 Nov 2009 17:33:34 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NACwm-0002C4-Rq for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:33:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NACwi-0002BX-VB for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:33:32 -0500 Original-Received: from [199.232.76.173] (port=51898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NACwi-0002BU-Ph for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:33:28 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:53022) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NACwf-0004cs-Qz for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2009 20:33:26 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id nAH1XHEf018648; Tue, 17 Nov 2009 10:33:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id nAH1XHPs005871; Tue, 17 Nov 2009 10:33:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id nAH1XH1E010731; Tue, 17 Nov 2009 10:33:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NACwX-0003M1-5T; Tue, 17 Nov 2009 10:33:17 +0900 In-Reply-To: <4B01B0FC.4090505@geodynamics.org> (message from Leif Strand on Mon, 16 Nov 2009 12:07:24 -0800) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 16 Nov 2009 20:47:30 -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:32660 Archived-At: 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