Hi, 2011/1/23 Charles Nutter <redmine / ruby-lang.org>: > Issue #4298 has been updated by Charles Nutter. > > > Perhaps I'm mistaken, but isn't RSTRING_LEN the byte length of the string? Isn't that always guaranteed to be >= str_strlen, which is the character length? And doesn't this patch basically break completely if beg is greater than the encoded character length but not greater than the raw byte length? > Sorry, you are right. It is a wrong patch. I think that storing str_strlen value to a variable only when string length changes is a possible workaround. Regards, Park Heesob