From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: po file charset via auto-coding-functions Date: Mon, 24 Oct 2005 11:05:06 +0900 Message-ID: References: <87zmp399ue.fsf@zip.com.au> <87ll0ma3ow.fsf@zip.com.au> <87fyqu9ung.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1130119618 3538 80.91.229.2 (24 Oct 2005 02:06:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 02:06:58 +0000 (UTC) Cc: user42@zip.com.au, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 04:06:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETriQ-0003vI-46 for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 04:05:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETriP-00059z-7L for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2005 22:05:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETriB-00058n-8F for emacs-devel@gnu.org; Sun, 23 Oct 2005 22:05:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETri9-000585-ES for emacs-devel@gnu.org; Sun, 23 Oct 2005 22:05:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETri9-00057t-4h for emacs-devel@gnu.org; Sun, 23 Oct 2005 22:05:17 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ETri2-0003qU-H1; Sun, 23 Oct 2005 22:05:10 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j9O25771024804; Mon, 24 Oct 2005 11:05:07 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id j9O257Dd027075; Mon, 24 Oct 2005 11:05:07 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1ETrhy-00088K-00; Mon, 24 Oct 2005 11:05:06 +0900 Original-To: rms@gnu.org In-reply-to: (rms@gnu.org) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:44673 Archived-At: In article , "Richard M. Stallman" writes: > Ah! I see. That's why archive-mode succeeded in my > environment. Hmmm, it seems that you are right. There's no > way to handle a tared/archived file in a function registered > in file-coding-system-alist. > Could you explain what that means? > I don't entirely understand. Let's assume that a tar file x.tar contains a file vi.po. The current problem is that on extracting vi.po in tar-mode, a function registered in file-coding-system-alist is called with a filename "vi.po". So, that function can't check the contents of that file because it can't read the contents by insert-file-contents. But, po-find-file-coding-system have to read the contents to determine a coding system. The original suggestion by Kevin is to move po-find-file-coding-system from file-coding-system-alist to auto-coding-functions because, then, po-find-file-coding-system can check the file contents even for an achive file member. Then, Stefan suggested to provide a proper file-name-handler in tar-mode and arc-mode so that insert-file-contents should correctly work even for an arhive file member. But, I thought it's not easy, and proposed the other simpler method in the last mail. --- Kenichi Handa handa@m17n.org