This project is archived and is in readonly mode.

Changeset [7d16e94d827197d030fdd611db4310396aeb0114] by Erik Ostrom

August 10th, 2009 @ 07:30 AM

Correctly handle offsets in Multibyte::Chars#index and #rindex.

The offset in codepoints was being passed directly to the wrapped string's index/rindex method. Now we translate the offset into bytes first.

[#3028 state:committed]

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

Committed by Erik Ostrom

  • M activesupport/lib/active_support/multibyte/chars.rb
  • M activesupport/test/multibyte_chars_test.rb

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>