With ruby-1.9.1-rc1 on MinGW, when irb is launched, nothing is displayed.
In fact, everything that is entered (e.g s = "hello") is not visible (i.e. is not echoed).
But when Enter is pressed, irb outputs the result.
Note that with ruby-1.9.1-preview2 on MinGW, irb (with the completion support) works as expected.
My configuration :
Windows XP SP2
stable version of MinGW :
w32api-3.13
mingwrt-3.15.1
binutils-2.19
gcc-3.4.5
MSYS and MSYSDTK 1.0.10
My build process from MSYS shell :
(MinGW is installed in C:/opt/MinGW)
zlib-1.2.3 (zlib.net)
./configure --prefix=C:/opt/MinGW
make
make test
make install
termcap-1.3.1 (www.gnu.org)
./configure --prefix=C:/opt/MinGW
make
make install
readline-5.2 (www.gnu.org)
./configure --prefix=C:/opt/MinGW --disable-shared
make
make install
ruby :
./configure --prefix=C:/opt/ruby19 --program-suffix=19 --with-static-linked-ext
make
make test
make install
=end
=begin
As I indicated, it worked also for me with ruby-1.9.1-preview2 :
ruby 1.9.1 (2008-12-01 revision 20438) [i386-mingw32]
It doesn't work anymore with ruby-1.9.1-rc1 :
ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [i386-mingw32]
The difference of revision numbers between your build and mine is a bit strange.
But I think that you don't use ruby-1.9.1-rc1 given the date version of your build.
Note that I'm using the tarball from the ruby-lang.org ftp.
As I indicated, it worked also for me with ruby-1.9.1-preview2 :
ruby 1.9.1 (2008-12-01 revision 20438) [i386-mingw32]
It doesn't work anymore with ruby-1.9.1-rc1 :
ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [i386-mingw32]
The difference of revision numbers between your build and mine is a bit strange.
But I think that you don't use ruby-1.9.1-rc1 given the date version of your build.
Note that I'm using the tarball from the ruby-lang.org ftp.
I think this is a specific problem on MinGW.
On the same machine, I built ruby-1.9.1-rc1 with Visual C++ 2008 Express Edition and irb works fine.
irb from ruby-1.9.1-rc1 works also fine on Linux Ubuntu 8.10.
Perhaps there's an encoding/m17n problem when running on your system?
Maybe. There have been some changes in irb related with m17n between ruby-1.9.1-rc1 and ruby-1.9.1-preview2.
What encoding am I supposed to use (I've never specified a specific encoding before) ?
Also, on the same system, the VC2008 version of irb works.
I think this is a specific problem on MinGW.
On the same machine, I built ruby-1.9.1-rc1 with Visual C++ 2008 Express Edition and irb works fine.
irb from ruby-1.9.1-rc1 works also fine on Linux Ubuntu 8.10.
Oops, nevermind me...I missed that little detail about MinGW.
The issue may be related with readline.
On the MinGW ruby-1.9.1-rc1 version, if I launch irb with --noreadline, irb works as expected.
So this works as fine as the VC2008 version (which doesn't include readline support from the beginning).
What is strange is that readline works well with ruby-1.9.1-preview2 on MinGW.