Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Inflector#parameterize failure

#2512

The regexp used for the parameterize method silently fails with ruby-1.8.6 or 1.8.7 if compiled with oniguruma with a string containing 2 "s" characters. I guess it is transliterate's /[^\x00-\x7F]+/ fault.

So "My golden assets".parameterize returns #<ActiveSupport::Multibyte::Chars:0x8058247b0 @wrapped_string="my-golden-a-ets">

Recompiling ruby without oniguruma returns the expected #<ActiveSupport::Multibyte::Chars:0x8058247b0 @wrapped_string="my-golden-assets"> object.

Not tried with ruby-1.9.1. The failure is reproduced with Macports and FreeBSD-7.

Reported by Jérôme · April 16th, 2009 @ 03:41 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    Could not confirm on 2.3.5.

    >> "My golden assets".parameterize
    => #<ActiveSupport::Multibyte::Chars:0x105492568 @wrapped_string="my-golden-assets">
    

    April 29th, 2010 @ 10:36 PM