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: Fri, 21 Oct 2005 11:18:03 +0900 Message-ID: References: <87zmp399ue.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 1129861135 7575 80.91.229.2 (21 Oct 2005 02:18:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 02:18:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 04:18:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESmUL-00066U-Da for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2005 04:18:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESmUK-0003I2-PQ for ged-emacs-devel@m.gmane.org; Thu, 20 Oct 2005 22:18:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESmU1-00038x-TJ for emacs-devel@gnu.org; Thu, 20 Oct 2005 22:18:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESmTy-00037O-Gp for emacs-devel@gnu.org; Thu, 20 Oct 2005 22:18:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESmTy-00037J-Cj for emacs-devel@gnu.org; Thu, 20 Oct 2005 22:18:10 -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 1ESmTx-00075m-W9 for emacs-devel@gnu.org; Thu, 20 Oct 2005 22:18: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 j9L2I6p6028252; Fri, 21 Oct 2005 11:18:06 +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 j9L2I5GO014396; Fri, 21 Oct 2005 11:18:06 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1ESmTr-0006sT-00; Fri, 21 Oct 2005 11:18:03 +0900 Original-To: Kevin Ryde In-reply-to: <87zmp399ue.fsf@zip.com.au> (message from Kevin Ryde on Fri, 21 Oct 2005 07:06:49 +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:44469 Archived-At: In article <87zmp399ue.fsf@zip.com.au>, Kevin Ryde writes: > This is a proposal to get the coding system for a .po file via > auto-coding-functions, instead of the way textmodes/po.el reads the > file explicitly. I agree that if .po file can be handled correctly in the frame work of auto-coding-functions, it's a good change. But, does the current method have any problem that can't be fixed within po.el? If not, I think we should make such a change after the current release. > One possible problem is that po files can have more than 1024 bytes of > comments before the header info block. I see fileio.c > Finsert_file_contents only grabs 1024 bytes before calling > set-auto-coding, but I can't tell if/when that happens. I think a > normal visit or an `archive-extract' has the whole file, so they work. Yes. > "TCVN-5712" in gtk 1.2 vietnamese. Is there a good place to map or > alias that to `tcvn' which emacs knows? I've just added this line in lisp/langauge/vietnamese.el. (define-coding-system-alias 'tcvn-5712 'vietnamese-tcvn) > "iso-8859-9e" in gtk 1.2 Azerbaijani turkish, but I don't know what > that charset is or is meant to be. glibc iconv doesn't seem to > recognise it, so presumably it's unused. I have no idea. --- Kenichi Handa handa@m17n.org