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.

Norman Clarke's latest activity

Friday, April 30 2010
4508 Delegate Inflector.transliterate to i18n was created in Ruby on Rails
Tuesday, April 13 2010
3475 ActiveSupport::Multibyte::Chars#gsub fails while String#gsub works was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 2:50 PM

    The problem here is that CGI.escape relies on the $1 variable, to get the last regexp match:

    # cgi.rb:341
    def CGI::escape(string)
      string.gsub(/([^ a-zA-Z0-9_...
3989 [Rails 3] Multibyte char in controller was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from rails3 to invalid, rails3
    by Norman Clarke at 1:26 PM
3504 String parameterize / normalize bug was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from activesupport, utf8 to activesupport, invalid, utf8
    by Norman Clarke at 1:24 PM

    Jeremy committed a patch of mine today that modifies the way Inflector.parameterize and Inflector.transliterate work. The #transliterate method invoked by param...

Monday, April 12 2010
4374 Inflector#transliterate fails on many European characters was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from transliterate parameterize, activesupport, multibyte to transliterate parameterize, activesupport, multibyte, patch
    by Norman Clarke at 8:35 PM

    Patch attached.

  • Norman Clarke
    Norman Clarke created the ticket at 8:32 PM

    Inflector.transliterate fails with many common European characters:

    Inflector.transliterate("Ærøskøbing") # "rskbing"
    

    In this case, the example is ironically ...

Friday, April 09 2010
4350 tidy_bytes fails on 1.9.x was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 12:13 AM

    Eh, really sorry for the multiple patches. I just noticed I left out a small change I had intended to add before submitting this. This should be the last one. :...

Thursday, April 08 2010
4350 tidy_bytes fails on 1.9.x was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 9:31 PM

    Blech. Included the wrong ticket number in the commit message; new patch attached.

  • Norman Clarke
    • Tag changed from active_support, multibyte to active_support, multibyte, patch
    by Norman Clarke at 9:30 PM

    Here is the patch.

  • Norman Clarke
    Norman Clarke created the ticket at 9:26 PM

    ActiveSupport::Multibyte::Chars#tidy_bytes does not work on 1.9.x, because its implementation uses a Unicode regular expression that, in 1.9.x, can only operate...