From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: =?utf-8?q?Re=3A_The_=E2=80=9Cbinary-friendly=E2=80=9D_Latin-1?= Date: Tue, 25 Jan 2011 06:01:35 -0800 (PST) Message-ID: <526443.96720.qm@web37901.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295964449 9329 80.91.229.12 (25 Jan 2011 14:07:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Jan 2011 14:07:29 +0000 (UTC) Cc: "guile-devel@gnu.org" To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 25 15:07:25 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PhjXK-0006Fn-AK for guile-devel@m.gmane.org; Tue, 25 Jan 2011 15:07:25 +0100 Original-Received: from localhost ([127.0.0.1]:55169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhjXE-0007oQ-8i for guile-devel@m.gmane.org; Tue, 25 Jan 2011 09:06:16 -0500 Original-Received: from [140.186.70.92] (port=34985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhjSk-0004n8-FM for guile-devel@gnu.org; Tue, 25 Jan 2011 09:01:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhjSj-0000qM-6a for guile-devel@gnu.org; Tue, 25 Jan 2011 09:01:38 -0500 Original-Received: from web37901.mail.mud.yahoo.com ([209.191.91.163]:32067) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PhjSi-0000pk-Rx for guile-devel@gnu.org; Tue, 25 Jan 2011 09:01:37 -0500 Original-Received: (qmail 97346 invoked by uid 60001); 25 Jan 2011 14:01:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295964095; bh=Er1Map+Ihd0Vny9NTbYAL1ytJcdonvq5u+wIOHuCdd4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=a06uTNEgYdG4P4nOlUGYOEa0TAYcISaJVrTOWagGMx3idjanTC2bTJncI/jG8O348enVtbgKaBMXBDcqECIhBPrq+5hC/+hM5Grh6G6tRfnS8RWu8ge7AMIWh3fHgayA29vB5QJQoZBDglyreHF3hEXxJcC81e6gFtJNtxDHkek= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XF72/JY1/B/gn/RL79v+wzxRC7RLkD/tEEf1ZAqcdzYkY85ciyWyktO6ZAlrXBLZLSSyGcgt9Y1TmdZYb13gqZanuNFa2Hw6LelR5vMmELEcNxETWdXgDIuAZIIUZkBQ+AAXXUemuFqBLRqT/yrCwmAdvfc0jPVudD+QfVeDAbo=; X-YMail-OSG: M6u.aIoVM1kbp4WT2SF2X8AF3vFh0vUqSwsStqM7JmVrFo. jGPJfM9mWGrzsExKo6mPxd6YNH_4FvxxfZzxvYpGqzYx42d3P.dK5lO5atNT 7mgtmccItrrnhPwgyQ8BausBL8giLHOq3SFFXbsh1iOw.fcwNUV_UXU8gp9v 4MRSdldf84ZQfr.uFJWitxrFAoCG1aMM9MqVHb.I1YuhXJ6fRr4ZLFvmLDWB .IgSmBRIw.9C2QL5V97EQnmvzKOFBM_5X7cGUrrUEeZMqdKpln0qX1pzh4_D c1jQcrWhwmyP9s3XGcWlMumXLd9zd8aiTDp4pACVJ27PSjXYUuZke_omnFsD oR2HVHUYLz7Cfxk5_PQOeg5HFLeSRanKGRXmNTQ6xc0.t9nnI1w-- Original-Received: from [71.130.208.153] by web37901.mail.mud.yahoo.com via HTTP; Tue, 25 Jan 2011 06:01:35 PST X-Mailer: YahooMailWebService/0.8.107.285259 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11337 Archived-At: > From:Ludovic Court=C3=A8s =0A=0A> Hello!=0A> =0A> >> 1. T= he notion of a =E2=80=9Cbinary-friendly=E2=80=9D ISO-8859-1 encoding? It= =E2=80=99s=0A> >> actually mostly gone with the iconv change, since eve= ry textual=0A> >> access goes through iconv. For binary accesses, the = right API is=0A> >> (rnrs io ports) or similar.=0A> >=0A> > An equivale= nt question is if you care about backward compatibility of=0A> > legacy por= ts. Legacy ports returned strings and were once the only option.=0A> =0A> = You mean if there=E2=80=99s legacy code using a port of unspecified encodin= g to=0A> read binary data, right?=0A> =0A> The iconv change doesn=E2=80=99t= break it on GNU/Linux:=0A=0ACool. Have you considered what you would want= to do with =0Athe 'recv!' procedure?=0A=0A[...]=0A=0A> > Is the cost of do= ing the various string comparisons of port-encoding=0A> > strings negligibl= e? It was put in as a (premature) optimization.=0A> =0A> The new code keep= s open iconv conversion descriptors for each port and=0A> re-uses them; the= only use of pt->encoding is when opening those CDs.=0A=0ASounds good.=0A= =0AThanks,=0A=0AMike=0A