This project is archived and is in readonly mode.

Changeset [4e014379a3c792281138c5a19a5bd74e9435fede] by Erik Ostrom

August 10th, 2009 @ 07:32 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

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=""></a>