From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#14287: 24.3.50; Some *-dos coding systems remove characters before LF for some files. Date: Sat, 27 Apr 2013 21:03:03 +0900 Message-ID: <87sj2cfafc.wl%%xmue@d1.dion.ne.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1367064238 13998 80.91.229.3 (27 Apr 2013 12:03:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Apr 2013 12:03:58 +0000 (UTC) To: 14287@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 27 14:04:02 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UW3rF-00029b-Cp for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Apr 2013 14:04:01 +0200 Original-Received: from localhost ([::1]:59315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3rF-0008Vl-0f for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Apr 2013 08:04:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3rB-0008Ve-HL for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UW3rA-0003jw-H7 for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3rA-0003jo-E0 for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UW3rG-0002uQ-2d for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Apr 2013 12:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136706422711120 (code B ref -1); Sat, 27 Apr 2013 12:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2013 12:03:47 +0000 Original-Received: from localhost ([127.0.0.1]:46193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UW3r0-0002tH-Ep for submit@debbugs.gnu.org; Sat, 27 Apr 2013 08:03:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56390) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UW3qy-0002t8-AN for submit@debbugs.gnu.org; Sat, 27 Apr 2013 08:03:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UW3qr-0003gU-2X for submit@debbugs.gnu.org; Sat, 27 Apr 2013 08:03:38 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:40658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3qq-0003gQ-Vp for submit@debbugs.gnu.org; Sat, 27 Apr 2013 08:03:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3qp-0008Uw-Um for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UW3qo-0003fO-Va for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:35 -0400 Original-Received: from msa105.auone-net.jp ([61.117.18.165]:34773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UW3qo-0003cy-EZ for bug-gnu-emacs@gnu.org; Sat, 27 Apr 2013 08:03:34 -0400 Original-Received: from GUNGNIR.med.osaka-cu.ac.jp (112-71-132-141f1.nar1.eonet.ne.jp [112.71.132.141]) by msa105.auone-net.jp (au one net msa) with ESMTP id 8CA4A2C803A; Sat, 27 Apr 2013 21:03:21 +0900 (JST) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.3.50 (i686-pc-cygwin) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73768 Archived-At: When I evaluate the below code on trunk, I get different result from 24.3. (let ((file (expand-file-name "HELLO" data-directory))) (mapcar (lambda (coding) (with-temp-buffer (let ((coding-system-for-read coding)) (insert-file-contents file)) (cons coding (buffer-substring (point-min) (progn (forward-line 1) (point)))))) '(iso-8859-1-unix iso-8859-1-dos raw-text-unix raw-text-dos sjis-unix sjis-dos iso-2022-7bit-unix iso-2022-7bit-dos))) -> ((iso-8859-1-unix . "This is a list of ways to say hello in various languages. ") (iso-8859-1-dos . "This is a list of ways to say hello in various languages ") (raw-text-unix . "This is a list of ways to say hello in various languages. ") (raw-text-dos . "This is a list of ways to say hello in various languages ") (sjis-unix . "This is a list of ways to say hello in various languages. ") (sjis-dos . "This is a list of ways to say hello in various languages ") (iso-2022-7bit-unix . "This is a list of ways to say hello in various languages. ") (iso-2022-7bit-dos . "This is a list of ways to say hello in various languages. ")) Result of Emacs 23.4 is below. ((iso-8859-1-unix . "This is a list of ways to say hello in various languages. ") (iso-8859-1-dos . "This is a list of ways to say hello in various languages. ") (raw-text-unix . "This is a list of ways to say hello in various languages. ") (raw-text-dos . "This is a list of ways to say hello in various languages. ") (sjis-unix . "This is a list of ways to say hello in various languages. ") (sjis-dos . "This is a list of ways to say hello in various languages. ") (iso-2022-7bit-unix . "This is a list of ways to say hello in various languages. ") (iso-2022-7bit-dos . "This is a list of ways to say hello in various languages. ")) We can confirm manually with universal-coding-system-argument and find-file command. The problem seems to depend the content of the file and the kind of coding system. For example, it does not occur with NEWS file. Of course, it is bad manner to load the content of the file with incorrect coding system. But I think this current behavior is very confusing. -- Kazuhiro Ito