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: Sat, 22 Oct 2005 10:43:48 +0900 Message-ID: References: <87zmp399ue.fsf@zip.com.au> <87ll0ma3ow.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 1129945466 28225 80.91.229.2 (22 Oct 2005 01:44:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2005 01:44:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 22 03:44:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ET8Qa-00081D-T6 for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2005 03:44:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ET8QZ-0002f9-La for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 21:44:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ET8QQ-0002dk-97 for emacs-devel@gnu.org; Fri, 21 Oct 2005 21:43:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ET8QO-0002dY-HU for emacs-devel@gnu.org; Fri, 21 Oct 2005 21:43:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ET8QN-0002dV-H1 for emacs-devel@gnu.org; Fri, 21 Oct 2005 21:43:56 -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 1ET8QN-0007Tv-EU for emacs-devel@gnu.org; Fri, 21 Oct 2005 21:43:55 -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 j9M1hoFk017862; Sat, 22 Oct 2005 10:43:50 +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 j9M1hnp9031406; Sat, 22 Oct 2005 10:43:50 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1ET8QG-0001KI-00; Sat, 22 Oct 2005 10:43:48 +0900 Original-To: Kevin Ryde In-reply-to: <87ll0ma3ow.fsf@zip.com.au> (message from Kevin Ryde on Sat, 22 Oct 2005 08:46:39 +1000) 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:44544 Archived-At: In article <87ll0ma3ow.fsf@zip.com.au>, Kevin Ryde writes: > If you visit a po file from tar-mode or archive-mode (with "Ret", ie. > tar-extract or archive-extra), the coding system specified in the file > doesn't take effect. Sometimes other guessing seems to get the right > answer, but eg. "tcvn" doesn't work from a tar where it does work from > a plain file. It's a bug of tar-mode. Thank you for noticing it. I've just installed a fix. But, I can't reproduce it in archive-mode. Please send me a minimum *.zip file that reproduces that bug. > (I hope I'm right that auto-coding-functions is the place to get a > coding system from file contents.) Yes. But, file-coding-system-alist is also a place to handle it. And, functions in auto-coding-functions is called on any file, but currently, po-find-file-coding-system is called only on *.po file. I'm not sure which is better, but at least there's a difference. --- Kenichi Handa handa@m17n.org