lib/active_support/multibyte/chars.rb in activesupport-2.3.4 vs lib/active_support/multibyte/chars.rb in activesupport-2.3.5

- 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. #