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: Re: guile 1.8.5 test failure: srfi-14.test Date: Sun, 18 May 2008 23:04:05 +0200 Message-ID: <87d4njnx2y.fsf@gnu.org> References: <200805160043.56735.bruno@clisp.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211144733 11391 80.91.229.12 (18 May 2008 21:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 May 2008 21:05:33 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun May 18 23:06:08 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jxq46-0001hB-4s for guile-bugs@m.gmane.org; Sun, 18 May 2008 23:05:47 +0200 Original-Received: from localhost ([127.0.0.1]:40812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jxq3L-0001Cd-Vk for guile-bugs@m.gmane.org; Sun, 18 May 2008 17:04:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jxq3H-00018J-Mw for bug-guile@gnu.org; Sun, 18 May 2008 17:04:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jxq3E-00011I-TI for bug-guile@gnu.org; Sun, 18 May 2008 17:04:19 -0400 Original-Received: from [199.232.76.173] (port=33549 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jxq3E-000119-Jx for bug-guile@gnu.org; Sun, 18 May 2008 17:04:16 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:43234 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 1Jxq3D-0006ow-Lj for bug-guile@gnu.org; Sun, 18 May 2008 17:04:15 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jxq39-0006z9-FO for bug-guile@gnu.org; Sun, 18 May 2008 21:04:11 +0000 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 May 2008 21:04:11 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 May 2008 21:04:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?iso-8859-1?Q?Flor=E9al?= 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:PoMV/7JKmtMDUYtwCc7xahRpdeI= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3876 Archived-At: Hi Bruno, Bruno Haible writes: > On my system, (find-latin1-locale) returns "de_DE.iso88591". Now look: > $ guile > guile> (char-set-size char-set:letter) > 52 > guile> (setlocale LC_CTYPE "de_DE.iso88591") > "de_DE.iso88591" > guile> (char-set-size char-set:letter) > 124 > guile> char-set:letter > # > > So the notion of "letters" in a Latin1 locale may depend on the libc. > It might be safer to change the test code from > > (= (char-set-size char-set:letter) 117) > > to > > (>= (char-set-size char-set:letter) 100) The cardinals of these char sets were taken from SRFI-14: http://srfi.schemers.org/srfi-14/srfi-14.html#StandardCharsetDefs This indicates that we should fix our SRFI-14 implementation, not the test. ;-) The system I'm currently using also picks `de_DE.iso88591' but it uses Glibc 2.7, which doesn't have this problem. I'm pretty sure Glibc 2.5 didn't have this problem either, and FreeBSD 6.2's libc doesn't either. I don't have any Glibc 2.3-based system at hand, so I can only try to guess what's going on. Glibc's `localedata/locales/i18n' appears to be what defines the character classes. According to the ChangeLog it was updated in Feb. 2007 to match Unicode 5.0, and in Apr. 2002 (by you) to match Unicode 3.2. Glibc 2.3.6 was released sometime in 2005 (see http://sourceware.org/ml/libc-announce/2005/msg00001.html), so it included the latter. The SRFI-14 locale-sensitive code in Guile and the corresponding tests date back to Sept. 2006, so it seems unlikely that the Unicode 5.0 update changed anything. Any idea what to look at? (Of course, we should eventually use `UnicodeData.txt' directly but that's not likely to happen anytime soon...) Thanks, Ludovic.