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: Mon, 24 Jan 2011 15:21:53 -0800 (PST) Message-ID: <55051.1700.qm@web37908.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 1295911327 29236 80.91.229.12 (24 Jan 2011 23:22:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 23:22:07 +0000 (UTC) To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= , "guile-devel@gnu.org" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 25 00:22:02 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 1PhVjW-0002ZW-GH for guile-devel@m.gmane.org; Tue, 25 Jan 2011 00:22:02 +0100 Original-Received: from localhost ([127.0.0.1]:42527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhVjV-0008FQ-Oq for guile-devel@m.gmane.org; Mon, 24 Jan 2011 18:22:01 -0500 Original-Received: from [140.186.70.92] (port=37882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhVjQ-0008DP-9q for guile-devel@gnu.org; Mon, 24 Jan 2011 18:21:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhVjP-00078q-AN for guile-devel@gnu.org; Mon, 24 Jan 2011 18:21:56 -0500 Original-Received: from web37908.mail.mud.yahoo.com ([209.191.91.170]:20579) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PhVjP-00078R-5D for guile-devel@gnu.org; Mon, 24 Jan 2011 18:21:55 -0500 Original-Received: (qmail 4944 invoked by uid 60001); 24 Jan 2011 23:21:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295911314; bh=AluGHkyIZyRxozSH7jBhpVEZMBrGPJEw87x2EFWSMcc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RpfPoKG34AtVJcmWYxuLOPc2EjWi9laleaKI1Lj5Q2vEG92FByXXfIJKLa2C450f2MsF8Gx5UAilx65Q4zi4yqUl1596jmLoriuVUXCqRCZo0txqNa/r33sOT3x3Qp02inwVnJ+V9l0msHNWyRJW3hM3Yut+aMVDeC+GBtIYj1A= 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:MIME-Version:Content-Type:Content-Transfer-Encoding; b=v6chWGgHwSde6GKd8krw9yqc46L+dZTAj1zjRb7vZWeoJt59+YnWnFV7kA10yhEX7K0GipQcTosOvN6+QvC1JEVViBnmowaSm0YQ+iHGWqWL4K8GejWEgNiz1taAJBAeC7zfHSXm0qFbhqYWB4//rSxRypZiluMZ15poqKEFIAI=; X-YMail-OSG: VFqN_8gVM1mkr0ZCQHmHXNo.VkS.2_Mm349WYTciuFba6xK EdHmgoq27YsEMg96gfYFhpPpzWHoC9ire4.TM8JYmA84MMhxf2CKuVlYtox_ luUe5aiSjqspLqaK2DC6BvyWUQBKPHXS9qWDIlxZA6GGz9nuuCwcfnm26zi3 sCPGhMuihhFJ3kniwSqbVxzHH8qp5cNHXTk1suWDGlXnRdFJ5CjErrAAy_LN zpPRTvgz4R7F8qRuxhUtRFzKraFNX4d944W9cDByrfxsn4MXQx74vF_dXgVP ppDg.cfozU7rNYO4K5_ihKHF00jFa2I1Y64mB8Yk34Kddwg-- Original-Received: from [207.8.91.2] by web37908.mail.mud.yahoo.com via HTTP; Mon, 24 Jan 2011 15:21:53 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:11334 Archived-At: =0A=0A> From:Ludovic Court=C3=A8s =0A> To:guile-devel@gnu.org= =0A> Cc:=0A> Sent:Monday, January 24, 2011 2:26 PM=0A> Subject:The =E2=80= =9Cbinary-friendly=E2=80=9D Latin-1=0A> =0A> Hello!=0A> =0A> Do we really w= ant to keep:=0A> =0A> =C2=A0 1. The notion of a =E2=80=9Cbinary-friendly=E2= =80=9D ISO-8859-1 encoding?=C2=A0 It=E2=80=99s=0A> =C2=A0 =C2=A0 actually m= ostly gone with the iconv change, since every textual=0A> =C2=A0 =C2=A0 acc= ess goes through iconv.=C2=A0 For binary accesses, the right API is=0A> =C2= =A0 =C2=A0 (rnrs io ports) or similar.=0A=0AAn equivalent question is if yo= u care about backward compatibility of=0Alegacy ports.=C2=A0 Legacy ports r= eturned strings and were once the only option.=0AI think it is a bad idea i= f you are replacing one non-RNRS port system=0Awith another non-RNRS port s= ystem.=C2=A0 It is a less bad if you are replacing=0Anon-RNRS ports with RN= RS ports, assuming, of course that R7RS doesn't just=0Ainvent yet another p= ort system.=0A=0A> =0A> =C2=A0 2. The #f <=3D> "ISO-8859-1" equivalence for= =E2=80=98port-encoding=E2=80=99 and=0A> =C2=A0 =C2=A0 =E2=80=98set-port-en= coding!=E2=80=99.=C2=A0 Likewise, commit=0A> =C2=A0 =C2=A0 d9544bf012b6e343= c80b76bd5761b1583cc106a3 makes =E2=80=98port-encoding=E2=80=99=0A> =C2=A0 = =C2=A0 always return a string and pt->encoding always be non-NULL.=0A=0AIs = the cost of doing the various=C2=A0string comparisons=C2=A0of port-encoding= =0Astrings negligible?=C2=A0 It was put in as a (premature) optimization.= =0A=0A> =0A> Sorry for questioning this now, but these are important questi= ons, I=0A> think.=0A=0AIndeed.=0A=0A> =0A> Thanks,=0A> Ludo=E2=80=99.=0A=0A= Thanks,=0A=0AMike