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: make check fails if no en_US.iso88591 locale Date: Thu, 10 Sep 2009 20:34:17 +0100 Message-ID: <873a6u387a.fsf@arudy.ossau.uklinux.net> References: <87pra1djys.fsf@arudy.ossau.uklinux.net> <322965.9784.qm@web37906.mail.mud.yahoo.com> <873a6v7pjr.fsf@arudy.ossau.uklinux.net> <1252550169.24639.66.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252611361 12823 80.91.229.12 (10 Sep 2009 19:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2009 19:36:01 +0000 (UTC) Cc: Guile Devel To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Sep 10 21:35:54 2009 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 1MlpQv-0002hT-US for guile-devel@m.gmane.org; Thu, 10 Sep 2009 21:35:54 +0200 Original-Received: from localhost ([127.0.0.1]:36236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlpQv-00058P-Ds for guile-devel@m.gmane.org; Thu, 10 Sep 2009 15:35:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlpQW-0004wM-87 for guile-devel@gnu.org; Thu, 10 Sep 2009 15:35:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlpQR-0004s2-IZ for guile-devel@gnu.org; Thu, 10 Sep 2009 15:35:27 -0400 Original-Received: from [199.232.76.173] (port=55544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlpQR-0004rp-8K for guile-devel@gnu.org; Thu, 10 Sep 2009 15:35:23 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:50392) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlpQQ-0005L9-RR for guile-devel@gnu.org; Thu, 10 Sep 2009 15:35:23 -0400 Original-Received: from arudy (host86-147-112-99.range86-147.btcentralplus.com [86.147.112.99]) by mail3.uklinux.net (Postfix) with ESMTP id DCDE51F6A65; Thu, 10 Sep 2009 20:35:21 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 9E1DB38023; Thu, 10 Sep 2009 20:34:17 +0100 (BST) In-Reply-To: <1252550169.24639.66.camel@localhost.localdomain> (Mike Gran's message of "Wed\, 09 Sep 2009 19\:36\:09 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:9304 Archived-At: Mike Gran writes: > I'm not much of a regex guy, but, here's a couple of examples. First > one that sort of works as expected. > > guile> (string-match "s=E9" "Jos=E9")=20 > =3D=3D> #("Jos=E9" (2 . 5)) > > Regex properly matches the word, but, the match struct (2 . 5) is > referring to the bytes of the string, not the characters of the string. That's with a UTF-8 locale, isn't it? With latin-1 I suppose the numbers would be (2 . 4), right? > Here's one that doesn't work as expected. > > guile> (string-match "[:lower:]" "Hi, mom") > =3D=3D> #("Hi, mom" (5 . 6)) > guile> (string-match "[:lower:]" "H=ED, m=F3m") > =3D=3D> #f > > Once you add accents on the vowels, nothing matches. > > Thanks, Thank you! Do you think it would be good to add these examples to the manual? (I'm happy to do that if so.) Neil