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.

Serge Balyuk's latest activity

Sunday, March 20 2011
4776 [PATCH] Fix attr_accessor_with_default causing TypeError "singleton can't be ... was updated in Ruby on Rails
  • Serge Balyuk
    • Tag changed from activesupport, core_ext, fix, master, module, patch to 3x, activesupport, core_ext, fix, module, patch
    by Serge Balyuk at 2:45 PM
  • Serge Balyuk
    • State changed from stale to open
    by Serge Balyuk at 1:30 PM

    [state:open]

    Per suggestion above, I've rebased against 3-0-stable and was able to successfully reproduce the issue in that branch.

    Please find updated version ...

Tuesday, July 20 2010
4807 ERROR Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 was updated in Ruby on Rails
  • Serge Balyuk
    Serge Balyuk commented at 4:14 PM

    Hi Norman, thanks for the great explanation. I guess more valid example would be:

    ["ü".encode("UTF-8"), "ü".encode("ISO-8859-1")].join
    

    which still proves your...

  • Serge Balyuk
    Serge Balyuk commented at 1:44 PM

    Hey Kouhei,

    can you please give an example where Array#join can't mix encodings properly? I thought it does this kind of work well:

    
    > __ENCODING__
    => #<Encodi...
Monday, July 12 2010
4807 ERROR Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 was updated in Ruby on Rails
  • Serge Balyuk
    Serge Balyuk commented at 6:22 PM

    Hi Marius, did you try adding #encoding: utf-8 comment as the first line of your rake file? Can you please show an example of failing rake task? And DB adapter ...

Tuesday, July 06 2010
5006 ActiveSupport::BufferedLogger and us-ascii message on ruby 1.9.x was updated in Ruby on Rails
  • Serge Balyuk
    Serge Balyuk commented at 5:03 PM

    Please find proposed patch based on the above. The database.yml should include another setting ruby_encoding: iso-8859-1 for the encoding: latin1 case. That's b...

Monday, July 05 2010
5006 ActiveSupport::BufferedLogger and us-ascii message on ruby 1.9.x was updated in Ruby on Rails
  • Serge Balyuk
    Serge Balyuk commented at 3:51 PM

    Successfully reproduced this with mysql. To make the long story short, here's the distilled difference in behaviors of mysql and pg connection adapters:

    mysql:

    ...
Sunday, July 04 2010
5006 ActiveSupport::BufferedLogger and us-ascii message on ruby 1.9.x was updated in Ruby on Rails
  • Serge Balyuk
    Serge Balyuk commented at 10:13 PM

    Thanks for the update, Hery! I tried to reproduce the bug with postgres DB with no luck. (I did create a database in latin1 and set up database.yml accordingly)

    ...
  • Serge Balyuk
    Serge Balyuk commented at 7:00 PM

    @Hery: can you please give your output in console for this:

    
    irb(main):001:0> __ENCODING__
    => #<Encoding:UTF-8>
    irb(main):002:0> 'whatever'.encoding
    => #<Encod...
4807 ERROR Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 was updated in Ruby on Rails