From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: SRFI-14 and locale settings Date: Mon, 04 Sep 2006 07:41:19 +0100 Message-ID: <87slj89lrk.fsf@ossau.uklinux.net> References: <87y7t03ngn.fsf@laas.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157352224 9080 80.91.229.2 (4 Sep 2006 06:43:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2006 06:43:44 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 04 08:43:44 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GK8BA-0003QJ-3I for guile-devel@m.gmane.org; Mon, 04 Sep 2006 08:43:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GK8B9-0006DV-K2 for guile-devel@m.gmane.org; Mon, 04 Sep 2006 02:43:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GK8B7-0006DB-Bc for guile-devel@gnu.org; Mon, 04 Sep 2006 02:43:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GK8B6-0006Cv-L8 for guile-devel@gnu.org; Mon, 04 Sep 2006 02:43:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GK8B6-0006Cp-Dy for guile-devel@gnu.org; Mon, 04 Sep 2006 02:43:28 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GK8LZ-0007e0-1z for guile-devel@gnu.org; Mon, 04 Sep 2006 02:54:17 -0400 Original-Received: from laruns (host86-129-125-104.range86-129.btcentralplus.com [86.129.125.104]) by mail3.uklinux.net (Postfix) with ESMTP id 24DC740A112 for ; Mon, 4 Sep 2006 06:42:47 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id A5E006FF8E for ; Mon, 4 Sep 2006 07:41:19 +0100 (BST) Original-To: Guile-Devel In-Reply-To: <87y7t03ngn.fsf@laas.fr> ( =?iso-8859-1?q?Ludovic_Court=E8s's_message_of?= "Sun, 03 Sep 2006 18:48:56 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:6049 Archived-At: ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: > Hi, > > SRFI-14 doesn't take into account the current locale, mostly because > `scm_init_srfi_14 ()' gets invoked before the user has had any chance to > run code like `(setlocale ...)'. Thus, for instance, `char-set:letter' > is always initialized with the English set of letters. > > Since SRFI-13 is initialized in core Guile, SRFI-14 needs to be > initialized there too. But do you guys have an idea of how we could > work around this? Here's what SRFI 14 says about char-set:letter: char-set:letter In Unicode, a letter is any character with one of the letter categories (Lu, Ll, Lt, Lm, Lo) in the Unicode character database. There are 52 ASCII letters abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ There are 117 Latin-1 letters. These are the 115 characters that are members of the Latin-1 char-set:lower-case and char-set:upper-case sets, plus 00AA FEMININE ORDINAL INDICATOR 00BA MASCULINE ORDINAL INDICATOR (These two letters are considered lower-case by Unicode, but not by Java or SRFI 14.) My reading of this is that it is trying to be locale-independent, based on Unicode category definitions. Isn't that correct? (It may of course be that Guile's current implementation doesn't return the complete set that is implied by this definition, because it's bugged or because we don't have Unicode support yet, but that's a different kind of problem.) Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel