From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: EOL conversion of files in .tar archives Date: Tue, 22 May 2007 20:59:44 -0400 Message-ID: <871wh8e4n3.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179945867 4188 80.91.229.12 (23 May 2007 18:44:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 18:44:27 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 20:44:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hqvok-0001Bx-CQ for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 20:44:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqvom-0001tx-DO for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 14:44:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqvnq-0001XI-7g for emacs-devel@gnu.org; Wed, 23 May 2007 14:43:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqvno-0001WY-OA for emacs-devel@gnu.org; Wed, 23 May 2007 14:43:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqvno-0001WT-Gc for emacs-devel@gnu.org; Wed, 23 May 2007 14:43:16 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqvnl-0004fc-5S; Wed, 23 May 2007 14:43:13 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id D32174E529; Tue, 22 May 2007 20:59:44 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue\, 22 May 2007 14\:19\:14 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71668 Archived-At: Eli Zaretskii writes: > This solves the problem with the EOL decoding, but reveals a very > strange phenomenon: dos-w32.el and dos-w32.elc behave differently. > The latter is preloaded into Emacs on Windows, and if I visit a file > inside a tarball (after applying the patch below), plain text files > with Unix EOLs get latin-1-unix buffer-file-coding-system, instead of > the expected undecided-unix. But if I manually load dos-w32.el and > visit the same file again, its buffer-file-coding-system is now > undecided-unix, as expected! Is this some problem with the byte > compiler? It is probably the result of using last-coding-system-used. ISTR that in a similar situation, the coding system used during byte-compilation replaced last-coding-system-used to cause a similar problem.