This project is archived and is in readonly mode.
I18n interpolation fails with multibyte strings on Ruby 1.9
-
DHH
- Assigned user set to Sven Fuchs
-
Manfred Stienstra
The tests didn't run on Ruby 1.8 because Encoding isn't defined. Attached is a patch with running tests on both 1.8 and 1.9.
-
Sven Fuchs
Awesome. Thanks Manfred!
I've applied that patch to the I18n gem and bumped its version to 0.1.3
Attached is a patch that vendorizes that gem version to Rails.
PS: Unfortunately I'm not aware how to do it so that the Rails history gives proper credits to Akira :( The I18n history now does. Is there any way how I could keep Akira's original authorship?
-
Manfred Stienstra
Nope, you can either credit your entire patch to Akira or not at all. Unfortunately Git doesn't allow you to set multiple authors for a commit. I assume they think commits should be small enough to be made by one author.
-
Repository
- State changed from new to committed
(from [943d64b1c857944666bff2572857abe866615274]) Vendorize i18n 0.1.3 gem (fixes issues with incompatible character encodings in Ruby 1.9) (Akira Matsuda) [#2038 I18n interpolation fails with multibyte strings on Ruby 1.9 state:committed]
Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...
-
Jeremy Kemper
- Milestone cleared.
-
Akira Matsuda
Ah, sorry for the tests on Ruby 1.8.
Thank you for fixing that, Manfred.
And, thanks for the credit, Sven.
