From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: smtpmail and ~/.authinfo Date: Sun, 21 Aug 2011 22:59:03 +0300 Message-ID: <83hb5ay1rs.fsf@gnu.org> References: <83ippsqsz8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313956759 1038 80.91.229.12 (21 Aug 2011 19:59:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2011 19:59:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 21 21:59:15 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 1QvEAt-0004x7-AN for ged-emacs-devel@m.gmane.org; Sun, 21 Aug 2011 21:59:15 +0200 Original-Received: from localhost ([::1]:35491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvEAs-0006s3-HT for ged-emacs-devel@m.gmane.org; Sun, 21 Aug 2011 15:59:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvEAn-0006rx-LI for emacs-devel@gnu.org; Sun, 21 Aug 2011 15:59:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvEAh-0004HT-TD for emacs-devel@gnu.org; Sun, 21 Aug 2011 15:59:09 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvEAh-0004H9-H2 for emacs-devel@gnu.org; Sun, 21 Aug 2011 15:59:03 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LQA00I00NBJHO00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 21 Aug 2011 22:59:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.175.65]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQA008S4NID8WE3@a-mtaout22.012.net.il>; Sun, 21 Aug 2011 22:59:01 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:143480 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sun, 21 Aug 2011 21:25:55 +0200 > > Eli Zaretskii writes: > > > You should know: you put it there ;-) > > > > The log message for revision 104742, where these bindings were > > introduced, doesn't say much. Can you tell why did you need them (for > > Windows, no less)? > > I don't see any Windows special-casing there? I was quoting your ChangeLog entry: 2011-06-27 Lars Magne Ingebrigtsen * mail/smtpmail.el (smtpmail-via-smtp): Bind coding-system-for-* to binary to possibly avoid line encoding issues on Windows (among other things). Btw, to _avoid_ line encoding issues on Windows, one should NOT bind coding-system-for-read to `binary', because that binding brings the CR-LF EOLs right into Emacs buffers. > Anyway, they're for the `open-network-stream' call. I've now wrapped > them closer around that call, which should probably fix the problem. Only partially. Since you say netrc files can have non-ASCII characters, we should bind coding-system-for-read to raw-text when calling auth-source-search. I will take care of that. Thanks.