From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#18006: Simplify via set_binary_mode Date: Sat, 12 Jul 2014 13:52:28 -0700 Organization: UCLA Computer Science Department Message-ID: <53C1A00C.6050906@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010205020604060203060009" X-Trace: ger.gmane.org 1405198465 6451 80.91.229.3 (12 Jul 2014 20:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jul 2014 20:54:25 +0000 (UTC) To: 18006@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 12 22:54:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X64JG-00053a-3e for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jul 2014 22:54:18 +0200 Original-Received: from localhost ([::1]:50317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64JF-0007hx-RB for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jul 2014 16:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64J6-0007gc-QQ for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:54:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X64J1-0005Bu-6n for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:54:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64J0-0005Bj-VZ for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X64J0-0000sG-Bb for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jul 2014 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: Emacs bug reports and feature requests Original-Received: via spool by submit@debbugs.gnu.org id=B.14051983893290 (code B ref -1); Sat, 12 Jul 2014 20:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2014 20:53:09 +0000 Original-Received: from localhost ([127.0.0.1]:40973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X64I7-0000qx-U9 for submit@debbugs.gnu.org; Sat, 12 Jul 2014 16:53:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47822) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X64I3-0000qM-Ik for submit@debbugs.gnu.org; Sat, 12 Jul 2014 16:53:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X64Hs-0004c3-LU for submit@debbugs.gnu.org; Sat, 12 Jul 2014 16:52:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64Hs-0004bx-Ic for submit@debbugs.gnu.org; Sat, 12 Jul 2014 16:52:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64Hn-0007UL-AT for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:52:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X64Hh-0004WJ-TC for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:52:47 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:44404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X64Hh-0004RX-IM for bug-gnu-emacs@gnu.org; Sat, 12 Jul 2014 16:52:41 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1F12AA60004 for ; Sat, 12 Jul 2014 13:52:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vo-iWnH7flF3 for ; Sat, 12 Jul 2014 13:52:28 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id BA72BA60006 for ; Sat, 12 Jul 2014 13:52:28 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91476 Archived-At: This is a multi-part message in MIME format. --------------010205020604060203060009 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Tags: patch Attached is a proposed minor simplification to have Emacs use set_binary_mode more consistently. I'm filing this as a bug report to give Eli a heads-up, as it affects the Microsoft ports. This is relative to trunk bzr 117525. --------------010205020604060203060009 Content-Type: text/plain; charset=UTF-8; name="binary-io.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="binary-io.patch" PT09IG1vZGlmaWVkIGZpbGUgJ2FkbWluL0NoYW5nZUxvZycKLS0tIGFkbWluL0NoYW5nZUxv ZwkyMDE0LTA2LTMwIDAwOjAxOjUxICswMDAwCisrKyBhZG1pbi9DaGFuZ2VMb2cJMjAxNC0w Ny0xMiAyMDo0Nzo1MCArMDAwMApAQCAtMSwzICsxLDkgQEAKKzIwMTQtMDctMTIgIFBhdWwg RWdnZXJ0ICA8ZWdnZXJ0QGNzLnVjbGEuZWR1PgorCisJVXNlIGJpbmFyeS1pbyBtb2R1bGUu CisJKiBtZXJnZS1nbnVsaWIgKEdOVUxJQl9NT0RVTEVTKTogQWRkIGJpbmFyeS1pby4gIEl0 IHdhcyBhbHJlYWR5CisJcHJlc2VudCBpbXBsaWNpdGx5OyB0aGlzIGp1c3QgbWFrZXMgdGhl IGRlcGVuZGVuY2UgZXhwbGljaXQuCisKIDIwMTQtMDYtMzAgIEdsZW5uIE1vcnJpcyAgPHJn bUBnbnUub3JnPgogCiAJKiB1cGRhdGVfYXV0b2dlbjogRmluZCBsb2FkZGVmcyB0YXJnZXRz IHJhdGhlciB0aGFuCgo9PT0gbW9kaWZpZWQgZmlsZSAnYWRtaW4vbWVyZ2UtZ251bGliJwot LS0gYWRtaW4vbWVyZ2UtZ251bGliCTIwMTQtMDUtMTcgMDg6MTE6MzEgKzAwMDAKKysrIGFk bWluL21lcmdlLWdudWxpYgkyMDE0LTA3LTEyIDIwOjQ3OjUwICswMDAwCkBA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