From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67654 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: gnus should accept UTF8 even if UTF-8 is standard Date: Tue, 21 Oct 2008 18:06:42 +0900 Message-ID: <87prlutizh.fsf@xemacs.org> References: <87wsg2tvcn.fsf@xemacs.org> <20081021062510.GB22593@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224579743 25893 80.91.229.12 (21 Oct 2008 09:02:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 09:02:23 +0000 (UTC) Cc: Miles Bader , rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org, tomas@tuxteam.de, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: ding-owner+M16103@lists.math.uh.edu Tue Oct 21 11:03:21 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsD93-0006Fp-2o for ding-account@gmane.org; Tue, 21 Oct 2008 11:03:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KsD7J-0004M1-6J; Tue, 21 Oct 2008 04:01:29 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KsD7H-0004Ll-RC for ding@lists.math.uh.edu; Tue, 21 Oct 2008 04:01:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KsD7D-0001XE-M5 for ding@lists.math.uh.edu; Tue, 21 Oct 2008 04:01:27 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KsD7K-0000MX-00 for ; Tue, 21 Oct 2008 11:01:30 +0200 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id BD825800E; Tue, 21 Oct 2008 18:01:19 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 1CF871A26AE; Tue, 21 Oct 2008 18:06:42 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67654 gmane.emacs.devel:104740 Archived-At: Eli Zaretskii writes: > > From: Miles Bader > > Date: Tue, 21 Oct 2008 15:21:25 +0900 > > Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org, > > Stefan Monnier , ding@gnus.org, rms@gnu.org > > > > Perhaps something like `canonicalize-coding-system-name' would be good. > > That implies that the return value would be a string, not the coding > system itself. I suggest we return the coding system (or nil), not > just the name. The coding system *is* just a name (AIUI, for Emacs; XEmacs and old Mule exposed the internal coding system object for reasons I don't claim to understand). That name happens to be a symbol, that's all. I think it would be reasonable for this function to also accept symbols (and attempt to guess coding systems from their print-names, if they are not coding system names). Eg, return 'utf-8 if handed 'utf8 or "UTF8". > Some time back in this thread I suggested `coding-system-for-charset' > (since the argument strings will be charsets). Actually, if I recall the thread correctly, normally they won't. They'll be *MIME* charsets, which correspond to Emacs *coding systems*.