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: scm_{to,from}_locale_string Date: Thu, 17 Mar 2011 11:38:12 -0700 (PDT) Message-ID: <453544.78973.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=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300387105 25118 80.91.229.12 (17 Mar 2011 18:38:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2011 18:38:25 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 17 19:38:19 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 1Q0I5T-0003AC-5S for guile-devel@m.gmane.org; Thu, 17 Mar 2011 19:38:19 +0100 Original-Received: from localhost ([127.0.0.1]:43815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0I5S-0005j3-Q9 for guile-devel@m.gmane.org; Thu, 17 Mar 2011 14:38:18 -0400 Original-Received: from [140.186.70.92] (port=40471 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0I5P-0005ga-QE for guile-devel@gnu.org; Thu, 17 Mar 2011 14:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0I5O-0006mL-Ja for guile-devel@gnu.org; Thu, 17 Mar 2011 14:38:15 -0400 Original-Received: from web37901.mail.mud.yahoo.com ([209.191.91.163]:48967) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q0I5O-0006m4-06 for guile-devel@gnu.org; Thu, 17 Mar 2011 14:38:14 -0400 Original-Received: (qmail 79838 invoked by uid 60001); 17 Mar 2011 18:38:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1300387092; bh=SsyiQ9y9g/zpE3gI6QzISmPsbVEa6tPQBoe2K3AcDag=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Qw1GJee9i88N+MthaImloGl8uKE+cR0MXmACq53HTR7IhmpW50SQ4cqdGrm0LjyKTR7gin9fi/an+JZwQyK/vGQ1XaIjjH5j+j76QsqVhZHdnozxvwwTim4J4bCsP4G2AQmfg6WeFMJh+mHCDcK8czLG7NcQ42TDH7ss3D8VfEQ= 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=H6idqUSjLdX+F2+4VyNWCCWLZzcVeJwqCLJLCX3rbm7W/z9l8tPFDQVME5im+IFVb5fwxHE1Y2nRyxV0zEJAqhbRwl82AcwTRX2zvvb8/0D5AdNKhFaNNyzBA73+mPIgMXmIPYA10Xbe3yxqHL2bpXCTXanFBfrOI/sC5pR8JBE=; X-YMail-OSG: Q3Jg_fcVM1mZLN6_7C2x72RHwe4e2PX0ytutY_RiVCR4Ztq Wxdj4ctcaQVSV5NRNfs.mll.o_IOpvf42qNq8.FoQPQtF9eUxwrsmMfqLbqW xdFp1eqSfEb1HRbbQSz2sb_irMkU_HAY6MyVweOUjM.vKkVJ3KvGu4bmv0z0 8h87XNQdgCjNoEVhUVnKl6nv0N7AfHvjr5_Z6m_39JKvfYfrwHoMruNbnA1J P3t8zxXZgSzsi4xk.GsD5cZZJZYPc5geAH0yELB4ovs1gkCj9stNHah07KM0 p37phheJDetoOJ.7OG5rxpvs1X7lpzSLmzP7Uvl656al4zXFllzclreXPNOO BRigpKM2TuihsP.hB6dvA3Rw_YD4SgViyz7YHX3_YWrZN Original-Received: from [207.8.91.2] by web37901.mail.mud.yahoo.com via HTTP; Thu, 17 Mar 2011 11:38:12 PDT X-Mailer: YahooMailWebService/0.8.109.295617 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 209.191.91.163 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:11895 Archived-At: > From:Andy Wingo =0A> =0A> Hi Mike,=0A> =0A> I'm looking = at changing to use the helper "locale_charset()" =0A> function=0A> from lib= unistring in the scm_to_locale_string and scm_from_locale_string=0A> functi= ons.=A0 It seems like that's more correct than snarfing through the=0A> cur= rent input/output ports.=0A> =0A> Likewise I'll just use the scm_i_get_conv= ersion_strategy for the=0A> handler.=0A> =0A> Please let me know if this is= the wrong thing to do.=0A=0AI'm trying to imagine a case where this is wro= ng.=0A=0ASo, if have a CGI script where the stdout could have one=0Aa coupl= e of different encodings based on a web client's language=0Apreference sett= ings, but, where the CGI program is running in a "C"=0Aor "en_US.utf8" loca= le, this might count.=0A=0ABut presumably, any snarfing would have been don= e before=0Athe CGI program reset its stdout locale before displaying its=0A= output web content.=0A=0AWould that violate your presuppositions?=0A=0A-Mik= e