From: matz@... (Yukihiro Matsumoto) Date: 2003-11-11T22:47:05+09:00 Subject: Re: IO.readlines bug? (1.6.8 vs 1.8.1) Hi, In message "Re: IO.readlines bug? (1.6.8 vs 1.8.1)" on 03/11/11, ts writes: | If I'm right the bug is in the part | |#ifndef READ_DATA_PENDING_PTR | if ((*bp++ = c) == delim || bp == bpe) { | cnt = bp - buf; | | if (cnt > 0) { | if (!NIL_P(str)) | rb_str_cat(str, buf, cnt); | else | *strp = str = rb_str_new(buf, cnt); | } | bp = buf; | } |#endif | | it use a 64 bit ruby/Solaris and in its case READ_DATA_PENDING_PTR is not | defined. Bingo. Thank you for finding it before 1.8.2. I will fix it soon. matz.