[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make check fails if no en_US.iso88591 locale
From: |
Neil Jerram |
Subject: |
Re: make check fails if no en_US.iso88591 locale |
Date: |
Thu, 10 Sep 2009 20:34:17 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Mike Gran <address@hidden> 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é" "José")
> ==> #("José" (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")
> ==> #("Hi, mom" (5 . 6))
> guile> (string-match "[:lower:]" "Hí, móm")
> ==> #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
- make check fails if no en_US.iso88591 locale, Neil Jerram, 2009/09/08
- Re: make check fails if no en_US.iso88591 locale, Mike Gran, 2009/09/08
- Re: make check fails if no en_US.iso88591 locale, Neil Jerram, 2009/09/09
- Re: make check fails if no en_US.iso88591 locale, Mike Gran, 2009/09/09
- Re: make check fails if no en_US.iso88591 locale, Ludovic Courtès, 2009/09/10
- Re: make check fails if no en_US.iso88591 locale, Mike Gran, 2009/09/10
- Re: make check fails if no en_US.iso88591 locale, Ludovic Courtès, 2009/09/10
- Re: make check fails if no en_US.iso88591 locale, Mike Gran, 2009/09/11
- Re: make check fails if no en_US.iso88591 locale,
Neil Jerram <=
- Re: make check fails if no en_US.iso88591 locale, Mike Gran, 2009/09/10
Re: make check fails if no en_US.iso88591 locale, Ludovic Courtès, 2009/09/09