Hi,

In message "[ruby-talk:8931] String confusion"
    on 01/01/10, Anders Bengtsson <ndrsbngtssn / yahoo.se> writes:

|I just ran into a problem with Strings that really confuses me.

It's a bug.  Here's the patch.  Thank you.

							matz.

--- string.c	2000/12/26 08:32:35	1.52
+++ string.c	2001/01/09 16:53:05
@@ -1401,2 +1401,3 @@
 
+    rb_str_modify(str);
     s = RSTRING(str)->ptr;