This project is archived and is in readonly mode.

#2512 ✓invalid
Jérôme

Inflector#parameterize failure

Reported by Jérôme | April 16th, 2009 @ 03:41 PM | in 2.x

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.

Comments and changes to this ticket

  • Ryan Bigg

    Ryan Bigg April 29th, 2010 @ 10:36 PM

    • 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">
    

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages