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

Tuesday, July 20 2010
4807 ERROR Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 2:16 PM

    You also need to make sure you go outside the 7-bit range to see the problem as well. Here's a trivial example that shows the problem:

    ["ü".force_encoding("UTF...
  • Norman Clarke
    Norman Clarke commented at 2:06 PM

    @Serge

    UTF-8 and ASCII are compatible encodings: ASCII is a proper subset of UTF-8. Try it with, for example, ISO-8859-1 and UTF-8 and you'get get a different r...

Thursday, July 08 2010
5028 AS::MB::Chars#slice! doesn't operate in-place; guide docs are out of date was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 9:45 PM

    No problem. Here's the commit without the doc updates, and rebased against the current master.

Thursday, July 01 2010
5028 AS::MB::Chars#slice! doesn't operate in-place; guide docs are out of date was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from activesupport, docs, multibyte to activesupport, docs, multibyte, patch
    by Norman Clarke at 3:12 PM

    Patch attached. Sorry for the extra-bold OMG SLICE!!!!! line above, not sure why that happened. :)

  • Norman Clarke
    Norman Clarke created the ticket at 3:10 PM

    The patch I will attach fixes a few remaining issues with AS::Multibyte::Chars:

    • #slice! was not operating in place
    • On 1.9, #strip!, #lstrip! and #rstrip! were ...
Wednesday, June 30 2010
4717 [PATCH] Fix ActiveSupport::Multibyte::Chars#slice for empty strings when star... was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from activesupport, chars, multibyte, patch to activesupport, chars, multibyte, patch, verified
    • Assigned user set to José Valim
    by Norman Clarke at 1:51 PM

    This no longer applies to Rails master after recent changes; here's an updated patch that now applies.

    +1 on this, it's a simple change that makes the behavior ...

5011 Update Active Support's Unicode support to 5.2 was updated in Ruby on Rails
  • Norman Clarke
    Norman Clarke commented at 3:35 AM

    Eh, wrong ticket number in the patch file. Sorry, Re-uploading.

  • Norman Clarke
    • Tag changed from activesupport, unicode to activesupport, multibyte, patch, unicode
    by Norman Clarke at 3:34 AM
  • Norman Clarke
    Norman Clarke created the ticket at 3:31 AM

    Unicode 5.2 was released in October 2009. Rails is currently using 5.1; I'll attach a patch that updates Active Support's Unicode database to the current versio...

4646 [BUG] [PATCH] ActiveSupport::Multibyte::Chars concatenation with #+ (plus) me... was updated in Ruby on Rails
  • Norman Clarke
    • Tag changed from activesupport, bug, multibyte, patch to activesupport, bug, multibyte, patch, verified
    • Importance changed from to Medium
    by Norman Clarke at 1:30 AM

    Looks like this one doesn't apply any more. Here's an updated patch which applies against the current Rails master.