vendor/rails/activesupport/lib/active_support/multibyte/chars.rb in radiant-0.8.2 vs vendor/rails/activesupport/lib/active_support/multibyte/chars.rb in radiant-0.9.0.rc2

- old
+ new

@@ -318,10 +318,10 @@ # Reverses all characters in the string. # # Example: # 'Café'.mb_chars.reverse.to_s #=> 'éfaC' def reverse - chars(self.class.u_unpack(@wrapped_string).reverse.pack('U*')) + chars(self.class.g_unpack(@wrapped_string).reverse.flatten.pack('U*')) end # Implements Unicode-aware slice with codepoints. Slicing on one point returns the codepoints for that # character. #