Closed masterkain closed 12 years ago
Thanks for the report. Do you see the same error on the release version of Rubinius 1.2.4? -Joel
I created a new version of the gem for you. Try this: "gem update sixarm_ruby_email_address_validation". This will download version 2.0.0. Try it in RBX head. If it works, great. If it doesn't work, can you show me what code you're using that's triggering the error? Thanks, Joel
Hi Joel, I just tried but I have the same error:
E, [2012-04-17T17:32:38.900486 #77931] ERROR -- : invalid multibyte escape: byte: 18: [^\x0d\x22\x5c\x80-\xff] (RegexpError)
kernel/common/regexp.rb:97:in `initialize'
/Users/kain/.rvm/gems/rbx-head@myapp/gems/sixarm_ruby_email_address_validation-2.0.0/lib/sixarm_ruby_email_address_validation.rb:9:in `__class_init__ (EmailAddressValidation)'
/Users/kain/.rvm/gems/rbx-head@myapp/gems/sixarm_ruby_email_address_validation-2.0.0/lib/sixarm_ruby_email_address_validation.rb:7:in `__script__'
I'm afraid I can't try rbx stable right now, perhaps I'll have more time during the day.
Thanks!
I'm not entirely sure what's going on here, but it may be a Rubinius issue.
Regexp.new '[^\\x0d\\x22\\x5c\\x80-\\xff]', nil, 'n'
raises, /cc @dbussink
rubinius-2.0.0dev :001 > Regexp.new '[^\\x0d\\x22\\x5c\\x80-\\xff]', nil, 'n'
RegexpError: invalid multibyte escape: byte: 18: [^\x0d\x22\x5c\x80-\xff]
from kernel/common/regexp.rb:97:in `initialize'
from (irb):1
from kernel/common/block_environment.rb:75:in `call_on_instance'
from kernel/common/eval.rb:72:in `eval'
from kernel/common/kernel19.rb:44:in `loop'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/delta/codeloader.rb:67:in `load_script'
from kernel/delta/codeloader.rb:109:in `load_script'
from kernel/loader.rb:632:in `script'
from kernel/loader.rb:836:in `main'
Could you open an issue with Rubinius with this specific issue? That repro with a single statement is great! It looks like it's only happening in 1.9 mode and not 1.8 mode.
This appears to be fixed in rbx-head, thanks!
Good, thanks for the update. Glad it works for you now.
Hello, I'm using rbx-head: