Project

General

Profile

Actions

Bug #996

closed

IRB doesn't work anymore with ruby-1.9.1-rc1 on MinGW

Added by Chauk-Mean (Chauk-Mean Proum) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
Backport:
[ruby-core:21238]

Description

=begin
Hi,

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

Actions #1

Updated by rogerdpack (Roger Pack) over 15 years ago

=begin
works all right for me [except for readline taking 100% cpu--I disabled it]

C:\installs\ruby_19_latest\bin>ruby -v
ruby 1.9.1 (2008-12-06 patchlevel 5000 revision 29560) [i386-mingw32]

http://betterlogic.com/roger/?p=312
=end

Actions #2

Updated by Chauk-Mean (Chauk-Mean Proum) over 15 years ago

=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.

=end

Actions #3

Updated by headius (Charles Nutter) over 15 years ago

=begin
Chauk-Mean Proum wrote:

Issue #996 has been updated by Chauk-Mean Proum.

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 use the tarball as well and it's ok:

[headius @ cnutter:~/projects/ruby-ffi]
◆ irb1.9
irb(main):001:0> puts 'hello'
hello
=> nil
irb(main):002:0> quit
[headius @ cnutter:~/projects/ruby-ffi]
◆ ruby1.9 -v
ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [i386-darwin9.6.0]
[headius @ cnutter:~/projects/ruby-ffi]

Perhaps there's an encoding/m17n problem when running on your system?

  • Charlie

=end

Actions #4

Updated by Chauk-Mean (Chauk-Mean Proum) over 15 years ago

=begin
Charlie,

ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [i386-darwin9.6.0]
[headius @ cnutter:~/projects/ruby-ffi]

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.

Chauk-Mean.
=end

Actions #5

Updated by headius (Charles Nutter) over 15 years ago

=begin
Chauk-Mean Proum wrote:

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.

=end

Actions #6

Updated by Chauk-Mean (Chauk-Mean Proum) over 15 years ago

=begin

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.

Chauk-Mean.

=end

Actions #7

Updated by yugui (Yuki Sonoda) over 15 years ago

  • Status changed from Open to Closed

=begin
applied in r21485
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0