From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: string port encodings Date: Wed, 16 Jan 2013 18:37:47 +0100 Message-ID: <87wqvdc9lg.fsf@gnu.org> References: <87wqvems2s.fsf@pobox.com> <87hamhf7yl.fsf@gnu.org> <877gndgj5t.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358357942 21508 80.91.229.3 (16 Jan 2013 17:39:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2013 17:39:02 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jan 16 18:39:17 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 1TvWwI-00075X-1q for guile-devel@m.gmane.org; Wed, 16 Jan 2013 18:38:14 +0100 Original-Received: from localhost ([::1]:51211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvWw1-0007h9-HX for guile-devel@m.gmane.org; Wed, 16 Jan 2013 12:37:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvWvv-0007So-Pr for guile-devel@gnu.org; Wed, 16 Jan 2013 12:37:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvWvu-0002Ue-Bz for guile-devel@gnu.org; Wed, 16 Jan 2013 12:37:51 -0500 Original-Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:12223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvWvu-0002UW-5O for guile-devel@gnu.org; Wed, 16 Jan 2013 12:37:50 -0500 X-IronPort-AV: E=Sophos;i="4.84,480,1355094000"; d="scan'208";a="168694485" Original-Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 16 Jan 2013 18:37:48 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?utf-8?Q?Niv=C3=B4se?= an 221 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <877gndgj5t.fsf@pobox.com> (Andy Wingo's message of "Wed, 16 Jan 2013 17:57:34 +0100") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.105 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:15456 Archived-At: Andy Wingo skribis: >> Otherwise, %default-port-encoding governs (info "(guile) String Ports"): > > But why? Because %default-port-encoding specifies the default port encoding? :-) I think that was mostly the reason behind . > You mention one use case: > >> as a smart way to do encoding conversion. > > But surely this is not a common case and is adequately handled by > set-port-encoding!, potentially via an optional argument. Yes. So you could change the default string port encoding to UTF-8, and update the doc accordingly, as I wrote in : In hindsight, UTF-8 does seem like a better default than the locale port encoding (which is what %default-port-encoding is, by default), but it does remain useful to specify a different encoding. I just think this may have to wait until 2.2. WDYT? Ludo=E2=80=99.