This project is archived and is in readonly mode.

#3719 ✓wontfix
Anuj Dutta

Errors in mutlibyte_chars_test for ActiveSupport

Reported by Anuj Dutta | January 17th, 2010 @ 06:39 AM

Running ruby-1.9.1-p376.

Got following errors:

  1) Failure:
test_center_should_count_charactes_instead_of_bytes(MultibyteCharsUTF8BehaviourTest) [/Users/andhapp/Projects/git-repository/andhapp-rails/activesupport/test/multibyte_chars_test.rb:342]:
<"ααこにちわαα"> expected but was
<"αこにちわα">.

  2) Failure:
test_ljust_should_count_characters_instead_of_bytes(MultibyteCharsUTF8BehaviourTest) [/Users/andhapp/Projects/git-repository/andhapp-rails/activesupport/test/multibyte_chars_test.rb:322]:
<"こにちわααα"> expected but was
<"こにちわαα">.

  3) Failure:
test_rjust_should_count_characters_instead_of_bytes(MultibyteCharsUTF8BehaviourTest) [/Users/andhapp/Projects/git-repository/andhapp-rails/activesupport/test/multibyte_chars_test.rb:304]:
<"αααこにちわ"> expected but was
<"ααこにちわ">.

They only fail on this "α". Other assertions in the same test methods pass.

Comments and changes to this ticket

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>

People watching this ticket

Pages