From: ts Date: 2003-03-19T01:18:47+09:00 Subject: Re: ruby-dev summary 19773-19824 >>>>> "P" == Paul Brannan writes: >> ' '.dup.rstrip.gsub(/a/, '') P> Why will this leave ptr NULL? It doesn't seem very obvious from the P> source (in str_gsub, ptr is set equal to buf, which is allocated with P> malloc(), which should never return 0 except on error). #gsub don't match, it return rb_str_dup("") which give a NULL pointer. Guy Decoux