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: Tue, 10 Jun 2008 14:09:33 +0200 Message-ID: <878wxdze2q.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213099831 10066 80.91.229.12 (10 Jun 2008 12:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2008 12:10:31 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jun 10 14:11:14 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 1K62gf-000650-H5 for guile-devel@m.gmane.org; Tue, 10 Jun 2008 14:10:53 +0200 Original-Received: from localhost ([127.0.0.1]:34324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K62fr-0007zA-Pk for guile-devel@m.gmane.org; Tue, 10 Jun 2008 08:10:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K62fl-0007z2-37 for guile-devel@gnu.org; Tue, 10 Jun 2008 08:09:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K62fh-0007yV-FR for guile-devel@gnu.org; Tue, 10 Jun 2008 08:09:56 -0400 Original-Received: from [199.232.76.173] (port=42771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K62fh-0007yS-Az for guile-devel@gnu.org; Tue, 10 Jun 2008 08:09:53 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:40443 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 1K62fg-00060v-Fm for guile-devel@gnu.org; Tue, 10 Jun 2008 08:09:53 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K62fY-0003Da-MZ for guile-devel@gnu.org; Tue, 10 Jun 2008 12:09:44 +0000 Original-Received: from 193.50.110.120 ([193.50.110.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2008 12:09:44 +0000 Original-Received: from ludo by 193.50.110.120 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2008 12:09:44 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.120 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 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:vpn2a+70Ho8UBkdZAJSCvX+pzGI= 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:7315 Archived-At: Hi, Thien-Thi Nguyen writes: > Unfortunately, that position doesn't provide a clean path > towards an encoding-knowledgable API. Perhaps I shouldn't have qualified the API as "encoding-oblivious". What I really meant is that the API should not expose the *internal* string representation. But of course, it should allow the user to transfer a Scheme string to a C string with a given representation. Currently, Guile only supports `scm_to_locale_string ()', which means the returned C string is encoded in the current locale's encoding. Eventually, new functions may be added: `scm_to_utf8_string ()', etc. This was Marius' original plan [0], and I think it remains valid. Thanks, Ludovic. [0] http://thread.gmane.org/gmane.lisp.guile.devel/3588