From: Matt Armstrong Date: 2003-02-14T15:05:17+09:00 Subject: Re: Ruby 1.8.0 bugs james@lazyatom.com (James Adam) writes: > Can anyone confirm these bugs i've noticed in Ruby-1.8.0 on cygwin? > > 1) line numbers reported by error messages are too small. > > i.e., with the following script: > == begin script, with line numbers == > |(1)| 1+3 > |(2)| 4+6 > |(3)| > |(4)| 7+5 > |(5)| > |(6)| > |(7)| 7+e3r2 > == end script == > > i get the following error message: > test.rb:5: undefined local variable or method 'e3r2' ... > > when you have comments in your code, it gets even more confusing. What is "e3r2" and why do you think it should not be considered a local variable or method? > 2) file reading/writing is inconsistent. > using puts to write strings to a file gives a file with CR+LF line > endings, but gets and all other line-reading methods from I/O only > operate properly with LF line-terminated files. If the file uses > CR+LF, the first character of the line is read in as part of previous > line. This sounds like a bug. If you haven't yet, you might try a nightly snapshot or build from CVS. -- matt