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.devel Subject: Re: Internal visibility Date: Wed, 11 Jun 2008 14:20:59 +0200 Message-ID: <87ve0gyxg4.fsf@gnu.org> References: <87k5i5d6ei.fsf@ossau.uklinux.net> <87lk2jhp0h.fsf@gnu.org> <87skwrce8y.fsf@ossau.uklinux.net> <87iqxledzz.fsf@gnu.org> <87lk2futg0.fsf@ossau.uklinux.net> <87fxslr1jr.fsf_-_@gnu.org> <878wxv5t7q.fsf@gnu.org> <87mym6dv6t.fsf@gnu.org> <49dd78620806091110v7a667787mef392fbf4446139d@mail.gmail.com> <87iqwhn3jw.fsf@gnu.org> <87d4mpsold.fsf@ambire.localdomain> <878wxdze2q.fsf@gnu.org> <87r6b42yyh.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213186890 17833 80.91.229.12 (11 Jun 2008 12:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2008 12:21:30 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 11 14:22:13 2008 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.50) id 1K6PL8-0006dD-B8 for guile-devel@m.gmane.org; Wed, 11 Jun 2008 14:22:10 +0200 Original-Received: from localhost ([127.0.0.1]:55942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6PKK-00082w-LN for guile-devel@m.gmane.org; Wed, 11 Jun 2008 08:21:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6PKC-0007zu-K8 for guile-devel@gnu.org; Wed, 11 Jun 2008 08:21:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6PKC-0007z8-4X for guile-devel@gnu.org; Wed, 11 Jun 2008 08:21:12 -0400 Original-Received: from [199.232.76.173] (port=46938 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6PKB-0007yu-Nb for guile-devel@gnu.org; Wed, 11 Jun 2008 08:21:11 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:56155 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6PKB-0008OA-BH for guile-devel@gnu.org; Wed, 11 Jun 2008 08:21:11 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K6PK7-0001Lu-Dp for guile-devel@gnu.org; Wed, 11 Jun 2008 12:21:07 +0000 Original-Received: from 193.50.110.56 ([193.50.110.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 12:21:07 +0000 Original-Received: from ludo by 193.50.110.56 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2008 12:21:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.56 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Prairial an 216 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: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:udb+7FSZM9L5ftQC7LTzH2Tjsjs= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:7322 Archived-At: Hi, Thien-Thi Nguyen writes: > I think the encoding of a string (or buffer or "character" array > (or subsequence thereof)) needs to be explicit; RnRS doesn't specify any encoding. R5RS Section 6.3.5 just says "Strings are sequences of characters." R6RS Section 1 goes further by saying "Strings are finite sequences of characters with fixed length and thus represent arbitrary Unicode texts." None of them refers to "encoding". > All these programs chose not to expose many conversion functions > in the programming interface. Instead, they expose few functions, > each with an encoding parameter. That is surely a cleaner design. Yes, that's probably a good idea. At any rate, we only have `scm_to_locale_string ()' currently so it's not too late to add a single function with an encoding parameter in lieu of the proposed `scm_to_{utf8,utf16,utf32,ucs4,...}_string ()'. But first of all, one needs to implement Unicode support. ;-) Thanks, Ludovic.