Reformatted excerpts from Tarko Tikan's message of 2009-06-13: > Yes it does. To me, this approach felt "hackish" so I didn't come up > with a patch :) But I still don't have better idea how to fix it so > it'll have to stay like this.
It's hackish because Ruby 1.8 has shitty multibyte support. The only reason it works at all is because byte length is character length (at least most of the time) in your encoding. There is a multibyte gem out there that I'm keeping an eye on. Also Ruby 1.9.1 allegedgly fixes this problem. > Thats because scan returns a array (hence using the size), without > scan you are just invoking on string and it's correct to use length > (for some reason size works too, backward compatibility?) Size and length are synonmys for both arrays and strings. I used size there for symmetry. -- William <wmorgan-...@masanjin.net> _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk