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.

Ruby 1.9 compat: fix JSON decoding with multibyte values

#1969

I found JSON decoding doesn't work properly with multibyte values on Ruby 1.9. Attatched a patch with a new test case. This patch depends on my previous ticket #1968 , so please apply the #1968 patch before trying this one.

Reported by Akira Matsuda · February 14th, 2009 @ 08:00 AM

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

Activity

  1. Akira Matsuda
    Akira Matsuda

    Changed the implementation not to depend on #1968 which didn't really like.

    Please discard the previous patch and try this new one.

    February 14th, 2009 @ 04:08 PM

  2. Akira Matsuda
    Akira Matsuda

    Sorry for posting again and again. Fixed the code again to pass the test with Ruby 1.9, 1.8.7 and 1.8.6.

    February 14th, 2009 @ 07:18 PM

  3. Repository
    Repository
    • State changed from new to committed

    (from [7c0e008973e594ebf53607362c1dfbe34b693600]) Ruby 1.9 compat: fix JSON decoding to work properly with multibyte values

    [#1969 state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    February 17th, 2009 @ 08:00 PM

  4. Repository
    Repository

    (from [13bf5c5a6ae510cd17f05ac24cad5df9dda42342]) Ruby 1.9 compat: fix JSON decoding to work properly with multibyte values

    [#1969 state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    February 17th, 2009 @ 08:00 PM