[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: Ruby Changes Its Mind About Non-Word Characters

From: "Vincent Isambart" <vincent.isambart@...>
Date: 2007-06-16 19:41:27 UTC
List: ruby-core #11484
Hi,

> Does this look like a bug to anyone else?
>
> % iconv <<< 'p "ecodeサ" =~ /\brecode\b/' -f utf-8 -t iso-8859-1|ruby
> 1

Did you check what the iconv evaluates to?
% iconv <<< 'p "ォrecodeサ" =~ /\brecode\b/' -f utf-8 -t iso-8859-1
p "?recode?" =~ /\brecode\b/

It is because the ォ and サ characters are not in ISO-8859-1.

The ? character has the same code in both UTF-8 and ISO-8859-1 as it
is an ASCII character so the -KU does not change anithing for it:

% ruby  <<< 'p "?recode?" =~ /\brecode\b/' -KU
1
% ruby  <<< 'p "?recode?" =~ /\brecode\b/'
1

And I am not surprised \b does not work fine with Unicode characters,
especially knowing the little Ruby 1.8 knows about Unicode... You
should be able to do something better with the last Ruby 1.9 as it
uses a recent version of Oniguruma and so understands Unicode
characters classes, but with 1.8...

Cheers,
Vincent Isambart


In This Thread