From: Jeff Pace Date: 2004-02-06T12:19:02+09:00 Subject: Re: -0777 broken in 1.8.1? Aron Griffis wrote: >Mike Stok wrote: [Wed Feb 04 2004, 04:40:03PM EST] > > >>Which compiler do you use? When I use -mcpu=athlon-xp -O3 -pipe and try >>the test suite on my Mandrake 9.2 I get errors, but if I turn the >>optimisation down to -O2 it works. Using a stable snapshot from last >>night (just because I was looking at it and have a build script) >> >> > >I'm using gcc-3.3.2. I just tested with -O0 but the problem persists. >The fact that it appears with 1.8.1 (on two architectures) but not with >1.8.0 suggests that it should be possible to narrow down some related >source changes within ruby. > >Regards, >Aron > > I ran into this with 1.8.1 last week, where the end-of-file was not being detected when the input record separator is null. This seems to have been fixed in io.c (on 26 December 2003). It now works correctly in the CVS version: ~/src/ruby-1.8.0% ./ruby -v; ./ruby -0777 -ne 'puts $FILENAME' ran* ruby 1.8.0 (2003-06-23) [i686-linux] random.c random.o range.c range.o ~/src/ruby-1.8.1% ./ruby -v; ./ruby -0777 -ne 'puts $FILENAME' ran* ruby 1.8.1 (2003-12-25) [i686-linux] random.c random.c random.c random.c random.c random.c ... ~/src/ruby-cvs/ruby% ./ruby -v; ./ruby -0777 -ne 'puts $FILENAME' ran* ruby 1.9.0 (2004-02-06) [i686-linux] random.c random.o range.c range.o --Jeff -- Jeff Pace / jpace@incava.org