From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: =?utf-8?Q?=E2=80=98scm=5Ffrom=5Flocale=5Fstring=E2=80=99?= and locale character encoding Date: Sun, 17 Jul 2011 22:47:56 +0200 Message-ID: <877h7gljlv.fsf_-_@gnu.org> References: <20110710.001131.2114114687665811411.pipping@lavabit.com> <4E1AFA72.2050803@gnu.org> <871uxud0s7.fsf@pobox.com> <4E1D95A0.60504@gnu.org> <87oc0yb8mh.fsf@pobox.com> <4E1DB59B.9070700@gnu.org> <87vcv5kzhk.fsf@pobox.com> 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 1310935735 28154 80.91.229.12 (17 Jul 2011 20:48:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 20:48:55 +0000 (UTC) Cc: bug-guile@gnu.org, bug-autogen@gnu.org, Bruce Korb , Elias Pipping To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jul 17 22:48:50 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiYGg-0001Wa-Be for guile-bugs@m.gmane.org; Sun, 17 Jul 2011 22:48:50 +0200 Original-Received: from localhost ([::1]:42438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiYGf-0000PH-7q for guile-bugs@m.gmane.org; Sun, 17 Jul 2011 16:48:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiYG3-0000Ld-GT for bug-guile@gnu.org; Sun, 17 Jul 2011 16:48:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiYG2-0002r8-9J for bug-guile@gnu.org; Sun, 17 Jul 2011 16:48:11 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:37684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiYFu-0002qS-SA; Sun, 17 Jul 2011 16:48:03 -0400 Original-Received: from nixey (reverse-83.fdn.fr [80.67.176.83]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id DC24444441; Sun, 17 Jul 2011 22:48:00 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Messidor an 219 de la =?iso-8859-1?Q?R=E9volution?= 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: <87vcv5kzhk.fsf@pobox.com> (Andy Wingo's message of "Thu, 14 Jul 2011 11:01:11 +0200") User-Agent: Gnus/5.110017 (No Gnus v0.17) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5736 Archived-At: Hello! Andy Wingo skribis: > On Wed 13 Jul 2011 17:11, Bruce Korb writes: [...] >> New name, please. > > We'll try harder in the future. But we cannot change the fact that > scm_from_locale_string does decode its argument. FWIW, I do understand the inconvenience and frustration reported here. But as Andy suggests, I think it should come as no surprise that =E2=80=98scm_from_locale_string=E2=80=99 returns a string from a locale-enc= oded one. Guile 1.8 already documented things this way [0]. As for (ab)using strings as byte sequences, it was bound to break with the introduction of Unicode support. To transition away from that, 1.8 had SRFI-4 and related I/O support (=E2=80=98uniform-vector-read!=E2=80=99,= etc.), though it wasn=E2=80=99t as convenient as R6RS bytevectors. Thanks, Ludo=E2=80=99. [0] http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Conversion-to= _002ffrom-C.html#index-scm_005ffrom_005flocale_005fstring-846