From: Carlos Agarie Date: 2013-03-27T05:16:48+09:00 Subject: Re: Strange unicode regex behavior with Ruby 2.0 --bcaec517c8ac888bc404d8d98484 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey Andreas, Lately, there have been some discussions on ruby-core (the mailing list dedicated to the core implementers of MRI). It's possible that this bug is being adressed at the moment. These are the most recent messages there: http://blade.nagaokaut.ac.jp/ruby/ruby-core/53601-53800.shtml#latest I don't really know what could be causing this difference. :( ----- Carlos Agarie Skype: carlos.agarie Control engineering Polytechnic School, University of S=E3o Paulo, Brazil Computer engineering Embry-Riddle Aeronautical University, USA 2013/3/26 Andreas S. > Hi, > > the following code behaves strangely in ruby 2.0, and different from > 1.9: > > puts "=E4".match(/[\p{Word}]/).inspect > puts "=E4".match(/[\p{Word}\s]/).inspect > > Result on 1.9.3-p194: > # > # > > Result on 2.0.0-p0: > # > nil > > Any ideas what's going on there? > > I have attached the ruby code as a file, in case there are any problems > with email charset conversion. > > Thanks! > Andreas > > Attachments: > http://www.ruby-forum.com/attachment/8267/test_regex.rb.txt > > > -- > Posted via http://www.ruby-forum.com/. > --bcaec517c8ac888bc404d8d98484 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey Andreas,

Lately, there have been some discussio= ns on ruby-core (the mailing list dedicated to the core implementers of MRI= ). It's possible that this bug is being adressed at the moment. These a= re the most recent messages there:

http://blade.nagaokaut.ac.jp/ruby/ruby-core/53601-53800.shtml#lat= est

I don't really know what could be causing this differenc= e. :(

-----
Carlos Agarie
Skype: carlos.agarie
Control engineering
Polytechnic School,=A0University of S=E3o Pau= lo, Brazil
Computer engineering
Embry-Riddle Aeronautical University, U= SA


2013/3/26 Andreas S. &= lt;lists@ruby-for= um.com>
Hi,

the following code behaves strangely in ruby 2.0, and different from
1.9:

puts "=E4".match(/[\p{Word}]/).inspect
puts "=E4".match(/[\p{Word}\s]/).inspect

Result on 1.9.3-p194:
#<MatchData "=E4">
#<MatchData "=E4">

Result on 2.0.0-p0:
#<MatchData "=E4">
nil

Any ideas what's going on there?

I have attached the ruby code as a file, in case there are any problems
with email charset conversion.

Thanks!
Andreas

Attachments:
http://www.ruby-forum.com/attachment/8267/test_regex.rb.txt<= /a>


--
Posted via
http://= www.ruby-forum.com/.

--bcaec517c8ac888bc404d8d98484--