On 15 Oct 2001, at 17:09, Alan Moore wrote:

> I've run into some odd behavior when I call the succ 
> method on a string with no alphanumeric characters.

This seems to be a bug. The following patch should fix it. I haven't 
ever compiled neither Ruby nor the patch, so be warned...

$ diff -u string.c~ string.c
--- string.c~   Thu Sep  6 07:47:46 2001
+++ string.c    Mon Oct 15 09:00:05 2001
@@ -823,8 +823,8 @@
        sbeg = RSTRING(str)->ptr; s = sbeg + RSTRING(str)->len - 1;
        c = '\001';
        while (sbeg <= s) {
-           *s += 1;
-           if (*s-- != 0) break;
+           if ((*s += 1) != 0) break;
+           s--;
        }
     }
     if (s < sbeg) {

Regards,
Pit