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: Re: string port encodings Date: Tue, 15 Jan 2013 13:21:29 -0800 (PST) Message-ID: <1358284889.8012.YahooMailNeo@web120403.mail.ne1.yahoo.com> References: <87wqvems2s.fsf@pobox.com> Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358284895 775 80.91.229.3 (15 Jan 2013 21:21:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 21:21:35 +0000 (UTC) To: Andy Wingo , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 15 22:21:53 2013 Return-path: Envelope-to: guile-devel@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 1TvDxA-0002qM-Mz for guile-devel@m.gmane.org; Tue, 15 Jan 2013 22:21:52 +0100 Original-Received: from localhost ([::1]:36195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvDwu-0008FX-Ah for guile-devel@m.gmane.org; Tue, 15 Jan 2013 16:21:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvDwq-0008FS-QG for guile-devel@gnu.org; Tue, 15 Jan 2013 16:21:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvDwp-0006Lx-GS for guile-devel@gnu.org; Tue, 15 Jan 2013 16:21:32 -0500 Original-Received: from nm9.bullet.mail.ne1.yahoo.com ([98.138.90.72]:37416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvDwp-0006Ls-8I for guile-devel@gnu.org; Tue, 15 Jan 2013 16:21:31 -0500 Original-Received: from [98.138.90.48] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 15 Jan 2013 21:21:30 -0000 Original-Received: from [98.138.89.248] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 15 Jan 2013 21:21:30 -0000 Original-Received: from [127.0.0.1] by omp1040.mail.ne1.yahoo.com with NNFMP; 15 Jan 2013 21:21:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 534017.5794.bm@omp1040.mail.ne1.yahoo.com Original-Received: (qmail 8147 invoked by uid 60001); 15 Jan 2013 21:21:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1358284890; bh=8lSAy6hLOkXqwP5BNoxVf6YzTpfnKB75igEDZaOFqZE=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DgUdlATVbXLMvBHcVKBFTgG9H0U9F5R+lfuDdepH6gsgrq4hE/h5ZXIMwuwreBtSm7iU3SsTSshvdjwFAkIPHcWVvegYUQ66C+VIDOEq6jrkjQD6Iyx7DAwjkRD2v2PUXkaxNoycsmUScerLCsczy9MYk1Z+qZl61FMl9OdY6Vc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lP0VwzU8smoAa0oZCjae872Ka4jRAJ5/X6hICnJTRNl9QcjHSQL9SHiEVcpQoB06QupnlG+bYcqFgPg/LxNPFfFAC020z8Fz+SWdy8kMmaTzvq6vSdJJy7vFXYqKeiyBRxmWQ9QM09hFjNNdKLCSeufNyXYWh8k3U3tkD+kOE8A=; X-YMail-OSG: qpxlOgEVM1lY7_VQnDwTDDQywesSJEA6XcBI06IV7GlnkuR b6f7vnygpXp9hT5BNHfdoXZTY8hsSBgHgilRW4xk6sYsXqLkv5BHNwVE8.iQ qQNoBIQRffujE0HYoWufN2XTd8ZsiPdXsRNNbBIsq7DEPPlBTDgppjzxBdPX sqL08buRalExlIlHgjyZpy9GxmCbIokOnPB_e2B5CgTiUqz9FXcMCbHjDp4v Y5Kn1VBllpxb5.vG9bwZPfiNaGBx19dwGNqo2yKH.e4n4bUgOtpn_jvdKfpx oduTfe4oMV9SGEedORpRhpdKo_pUFieVeKY8c4mUiTbAUoq_Nd3n0bbT4v5L IU0LQY4gRT67GKryhJRIYIRhnppCRtAXxOo_7_KzNiyOzYP94dhwn74soHEm SfxL0TAt5m8XtzHtzI27DKrxW6Xsu8zIU6LPMpgMXMMKDkP.CAwuPP1.KI5c diFyzQjX1vuwv7EGCorZjDY_50kSZWUakU6z5XtM.oSCK9JgsN.y4JwehgDn EuscYObzEQV_90bvwWXnpo_OIlvZ.TaukO2ow4GXiEPzGf1Ao8ielQnIUfYT C25Xf2Nwr8oCA.0p5KTWVeRCUqjioz4lu.ZNTh9_QcHGHlbFXbm0u Original-Received: from [12.195.138.131] by web120403.mail.ne1.yahoo.com via HTTP; Tue, 15 Jan 2013 13:21:29 PST X-Rocket-MIMEInfo: 001.001, SGkgQW5keSwKCj4gRnJvbTogQW5keSBXaW5nbyA8d2luZ29AcG9ib3guY29tPgo.IEJ1dCBubywgY3VycmVudGx5IHRoZSBhbnN3ZXIgaXMgbG9jYWxlLXNwZWNpZmljLsKgIEl0IGVuY29kZXMgdGhlIHN0cmluZwo.IGFjY29yZGluZyB0byB0aGUgY3VycmVudCBsb2NhbGUsIHRoZW4gZGVjb2RlcyBpdCBmcm9tIHRoYXQgZW5jb2RpbmcuwqAgSWYKPiB5b3VyIGxvY2FsZSBjYW4ndCBlbmNvZGUgdGhlIHN0cmluZywgdG91Z2ggbHVjayBmb3IgeW91IQo.IAo.IFRoaXMgaXMgYSBiaXQgY3JhenkuwqAgU3VyZWwBMAEBAQE- X-Mailer: YahooMailWebService/0.8.130.494 X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 98.138.90.72 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15432 Archived-At: Hi Andy,=0A=0A> From: Andy Wingo =0A> But no, currently th= e answer is locale-specific.=A0 It encodes the string=0A> according to the = current locale, then decodes it from that encoding.=A0 If=0A> your locale c= an't encode the string, tough luck for you!=0A> =0A> This is a bit crazy.= =A0 Surely the port should be textual?=A0 Surely the=0A> default encoding f= or a string port should be utf-8 or something that can=0A> actually handle = all strings?=0A=0ASome trivia.=A0 The Unicode work began in mainline around= Aug 2009.=A0 At=0Afirst, string ports used locale encoding.=0A=A0=0AThen, = in Sep 2009, 25ebc0340d30d1ceb786dbc8c3fe80c6e9ae0e87=0Ahad them as always = using UTF-8 for the reasons that you mention here.=0A=0AThere was a discuss= ion as to whether this was the right thing to do=0Athat began with the foll= owing message=0A=A0=0Ahttps://lists.gnu.org/archive/html/guile-devel/2010-0= 1/msg00012.html=0A=A0=0AThe commit 7b0419128bce68f48a158292430ed4a7202aa1b1= =A0set string=0Aports to locale encoding.=0A=A0=0A-Mike