From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: smtpmail and ~/.authinfo Date: Tue, 27 Sep 2011 13:07:42 +0900 Message-ID: <87bou639wx.fsf@uwakimon.sk.tsukuba.ac.jp> References: <83ippsqsz8.fsf@gnu.org> <83hb5ay1rs.fsf@gnu.org> <87litc7qen.fsf@lifelogs.com> <87pqio69lr.fsf@lifelogs.com> <87vcsf1537.fsf@lifelogs.com> <8739fj13vb.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1317096481 23699 80.91.229.12 (27 Sep 2011 04:08:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 04:08:01 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 27 06:07:57 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8OxY-0001PQ-Cx for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2011 06:07:56 +0200 Original-Received: from localhost ([::1]:42587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8OxX-0002fR-Og for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2011 00:07:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8OxV-0002fL-Sz for emacs-devel@gnu.org; Tue, 27 Sep 2011 00:07:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8OxV-00029z-0B for emacs-devel@gnu.org; Tue, 27 Sep 2011 00:07:53 -0400 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:37810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8OxU-00029P-EL for emacs-devel@gnu.org; Tue, 27 Sep 2011 00:07:52 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id BADD69707B9; Tue, 27 Sep 2011 13:07:42 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id AB9531A26F7; Tue, 27 Sep 2011 13:07:42 +0900 (JST) In-Reply-To: X-Mailer: VM 8.2.0a1 under 21.5 (beta31) "ginger" 6c76f5b7e2e3 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.158.97.224 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144379 Archived-At: Lars Magne Ingebrigtsen writes: > On the other hand, if auth-source prompts for a password, and you type > in something non-ASCII, the result will probably be something utf8-ey, I > think? No. 1.3 billion Chinese are very likely to use GB2312, not to mention 130 million Japanese who use Shift JIS. These are not UTF-8-ey in several ways, and Shift JIS even abuses octets in the ASCII range for use in multibyte characters. If you have *no* password and the user asks to store one, yes, use UTF-8, and warn the user that Emacs has chosen to use the standard Unicode encoding "UTF-8", but other applications (especially on Windows) may choose something else. In which case the user will be unable to log in from those applications. If you already have a password, it should be read verbatim (binary, or raw-text should do given the line-oriented nature of these configuration files) and treated as a binary blob. > Or what charset to use. Probably slightly less confusing, but probably > not a whole lot more. Mule should have a language-to-list-of-charset alist around somewhere. Use that to generate a menu of suggestions. Ask Ken'ichi about how to access it.