From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: smtpmail and ~/.authinfo Date: Mon, 26 Sep 2011 17:31:52 -0400 Message-ID: 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 X-Trace: dough.gmane.org 1317072723 14294 80.91.229.12 (26 Sep 2011 21:32:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 21:32:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 26 23:32:00 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 1R8ImN-0006kH-5B for ged-emacs-devel@m.gmane.org; Mon, 26 Sep 2011 23:31:59 +0200 Original-Received: from localhost ([::1]:44779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ImM-00016a-Ll for ged-emacs-devel@m.gmane.org; Mon, 26 Sep 2011 17:31:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ImK-00016K-6n for emacs-devel@gnu.org; Mon, 26 Sep 2011 17:31:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8ImH-0006r4-Vt for emacs-devel@gnu.org; Mon, 26 Sep 2011 17:31:56 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ImH-0006qs-Q0 for emacs-devel@gnu.org; Mon, 26 Sep 2011 17:31:53 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p8QLVowl025185; Mon, 26 Sep 2011 17:31:50 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 73842B41D0; Mon, 26 Sep 2011 17:31:52 -0400 (EDT) In-Reply-To: <8739fj13vb.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 26 Sep 2011 14:48:56 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3992=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3992> : streams <685426> : uri <969285> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:144360 Archived-At: > That's exactly my point. Right now we save as raw-text, which is not > usable to other programs in the long term. In UTF-8 it would be saved > "as such" because IIRC all codepoints under 255 don't need to be encoded > (and your string goes up to 233). No, chars from the latin-1 set have identical *Unicode* code points (i.e. between 128 and 255), but their encoding into utf-8 occupies 2 bytes. As for saving random bytes, you can't either, at least not in a way that is supported by all utf-8 implementations. I think raw-text is more likely to work, based on what Lars says. Stefan