From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.devel Subject: Re: po file charset via auto-coding-functions Date: Sat, 22 Oct 2005 08:46:39 +1000 Message-ID: <87ll0ma3ow.fsf@zip.com.au> References: <87zmp399ue.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129934862 6654 80.91.229.2 (21 Oct 2005 22:47:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 22:47:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 22 00:47:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ET5fA-0002vp-LU for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2005 00:47:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ET5f9-0002Sh-SQ for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 18:46:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ET5f0-0002ST-M1 for emacs-devel@gnu.org; Fri, 21 Oct 2005 18:46:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ET5ez-0002SG-7F for emacs-devel@gnu.org; Fri, 21 Oct 2005 18:46:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ET5ez-0002SD-2l for emacs-devel@gnu.org; Fri, 21 Oct 2005 18:46:49 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ET5ey-0007H5-Ro for emacs-devel@gnu.org; Fri, 21 Oct 2005 18:46:49 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9LMki1s007599 for ; Sat, 22 Oct 2005 08:46:44 +1000 Original-Received: from localhost (ppp2495.dyn.pacific.net.au [61.8.36.149]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9LMkhei017942 for ; Sat, 22 Oct 2005 08:46:44 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1ET5eq-0001qu-00; Sat, 22 Oct 2005 08:46:40 +1000 Original-To: emacs-devel@gnu.org In-Reply-To: (Kenichi Handa's message of "Fri, 21 Oct 2005 11:18:03 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) 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:44542 Archived-At: Kenichi Handa writes: > > But, does the current method have any problem that can't be > fixed within po.el? 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. (I hope I'm right that auto-coding-functions is the place to get a coding system from file contents.) (Incidentally, latexenc-find-file-coding-system looks like it might be another candidate for this in the future, except for the way it goes looking for a top-level file.)