M
Michel Demazure
The Ruby Core forum has no new entry since four days ago.
Is it closed, broken ?
_md
Is it closed, broken ?
_md
Michel said:The Ruby Core forum has no new entry since four days ago.
Is it closed, broken ?
You must be right. Thanks.Brian said:When you say "forum" do you mean ruby-forum.com? Yes
So I suspect it's
just the ruby-forum.com gateway which is broken.
More : apparently the ruby core archives are also blocked at June 10th.Brian said:Michel Demazure wrote:
So I suspect it's
just the ruby-forum.com gateway which is broken.
Michel said:BTW, Brian, do you have any idea about my post of two days ago (method
lookup) ?
Brian said:
So perhaps you could try one of the 1.9.2 previews.
Michel said:I switched sometime ago to 1.9 and my app now uses ordered hashes and
enumerators.
But
1.9.2 implies (or is it 1.9.x ?) - alas poor Yorick! - changing
Regexp's : \d, \s,\w and the like work no more with utf-8 encodings!
=> "groß"RUBY_DESCRIPTION => "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]"
a = "groß 123 über" => "groß 123 über"
a.encoding=> # said:a =~ /(\d+)/ => 5
$1 => "123"
a =~ /(\w+)/ => 0
$1
=3D> "gro=DF"RUBY_DESCRIPTION =3D> "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]"
a =3D "gro=DF 123 =FCber" =3D> "gro=DF 123 =FCber"
a.encoding=3D> # said:a =3D~ /(\d+)/ =3D> 5
$1 =3D> "123"
a =3D~ /(\w+)/ =3D> 0
$1
=3D> "ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]"RUBY_DESCRIPTION
a =3D "gro=DF 123 =FCber" =3D> "gro=DF 123 =FCber"
a.encoding
=3D> "=DF 123 =FCber"=3D> # said:a =3D~ /(\w+)/ =3D> 0
$1 =3D> "gro"
$'
Brian said:Certainly there are cool new features in 1.9, and apparently improved
speed. But these are outweighed for me by the total mess which is
encodings.
Care to share an example, or point to a blog with more details?
Michel said:Look at the beautiful example !
RangeReg =
/\A(\p{Digit}+|\p{Digit}+\.\.\p{Digit}+)(,\p{Space}*(\p{Digit}+|\p{Digit}+\.\.\p{Digit}+))*\Z/
Certainly there are cool new features in 1.9, and apparently improved
speed. But these are outweighed for me by the total mess which is
encodings.
Care to share an example, or point to a blog with more details? I have
an older 1.9.2 lying around, it doesn't seem to behave how you describe.
unknown said:http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_preview3/NEWS
* \d, \s, and \w are now ASCII only; use POSIX bracket classes and \p{}
for
Unicode semantics
http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_preview3/NEWS
* \d, \s, and \w are now ASCII only; use POSIX bracket classes and \p{} f= or
=A0Unicode semantics
http://redmine.ruby-lang.org/issues/show/3376
The rationale is that many people expects \d and \s to match ASCII only.
Brian said:So I suspect it's
just the ruby-forum.com gateway which is broken.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.