From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Brett Newsgroups: gmane.lisp.guile.devel Subject: Re: Using libunistring for string comparisons et al Date: Tue, 29 Mar 2011 13:39:00 +0100 Organization: University of Surrey, Guildford, England Message-ID: References: <336042.33326.qm@web37901.mail.mud.yahoo.com> <878vwgmhah.fsf@netris.org> <511668.33680.qm@web37902.mail.mud.yahoo.com> <87sjuokniq.fsf@netris.org> <118142.11911.qm@web37907.mail.mud.yahoo.com> <87ipvjlvgj.fsf@netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301402809 1089 80.91.229.12 (29 Mar 2011 12:46:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 12:46:49 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 29 14:46:45 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 1Q4YJo-0000Fp-U8 for guile-devel@m.gmane.org; Tue, 29 Mar 2011 14:46:45 +0200 Original-Received: from localhost ([127.0.0.1]:50186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4YJn-0003SS-CE for guile-devel@m.gmane.org; Tue, 29 Mar 2011 08:46:43 -0400 Original-Received: from [140.186.70.92] (port=35469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4YJJ-00039l-9I for guile-devel@gnu.org; Tue, 29 Mar 2011 08:46:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4YCf-0005VE-Pe for guile-devel@gnu.org; Tue, 29 Mar 2011 08:39:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4YCf-0005V6-Il for guile-devel@gnu.org; Tue, 29 Mar 2011 08:39:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4YCZ-00054d-1k for guile-devel@gnu.org; Tue, 29 Mar 2011 14:39:15 +0200 Original-Received: from 131.227.8.61 ([131.227.8.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 14:39:15 +0200 Original-Received: from peter by 131.227.8.61 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 14:39:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 131.227.8.61 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:Gg4b0baM0Uxa4nSp5upf34vBL2A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:12052 Archived-At: Andy Wingo writes: > Finally, users are moving away from these functions anyway. The thing > to do now is to write Scheme, not C: and in Scheme we do the Right > Thing. I hope I'm misinterpreting this statement. Using Guile as an extension language for applications depends *heavily* on writing large amounts C to provide fundamental API functions in C Scheme code can then invoke to manipulate the application's state. Is this disencouraged with Guile 2.0, then? > So let's not let this particular consideration weigh too heavily on our > choice of character encoding. > It would certainly make my life as a downstream application maintainer much, much easier if all Guile API functions that accept a C string argument expected UTF-8. Having to double check (either by an explicit save/restore or by code auditing) that whenever a string is passed to Guile that the locale is set up correctly is a pain. Peter -- Peter Brett Remote Sensing Research Group Surrey Space Centre