Bug #4108

irb hangs on Windows with trunk

Added by Heesob Park over 4 years ago. Updated about 4 years ago.

[ruby-core:33511]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.9.3dev (2010-12-02 trunk 30006) [i386-mswin32_90] Backport:

Description

=begin
Due to r29980, irb hangs. please revert r29980.

C:\work>irb
irb(main):001:0> a = 1
=end

History

#1 Updated by Usaku NAKAMURA over 4 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30017.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

#2 Updated by Heesob Park over 4 years ago

=begin
2010/12/2 Usaku NAKAMURA redmine@ruby-lang.org:

Issue #4108 has been updated by Usaku NAKAMURA.

Status changed from Open to Closed
% Done changed from 0 to 100

This issue was solved with changeset r30017.

After applying r30017 and r30018, irb is not working well with
multibyte strings.

On the trunk version,

C:\work>irb
irb(main):001:0> a = "한글"
=> "풉"
irb(main):002:0> a = 1
=> nil
=> nil
=> 1
irb(main):003:0> a = "가나다"
SyntaxError: (irb):3: invalid multibyte char (CP949)
(irb):3: unterminated string meets end of file
from c:/usr/bin/irb.bat:20:in `'

On ruby 1.9.2,

irb(main):001:0> a = "한글"
=> "한글"
irb(main):002:0> a = 1
=> 1
irb(main):003:0> a = "가나다"
=> "가나다"
irb(main):004:0>

=end

#3 Updated by Usaku NAKAMURA over 4 years ago

=begin
Hello,

In message " Re: [Ruby 1.9-Bug#4108][Closed] irb hangs on Windows with trunk"
on Dec.02,2010 15:19:29, phasis@gmail.com wrote:

After applying r30017 and r30018, irb is not working well with
multibyte strings.

I expect that this is fixed at r30019.

BTW, I hear that irb still be in stuck when using readline.
Tarui-san is debugging the problem.

And, the original problem (#4097) is not completely resolved
yet.
The possibility of the buffer overflow and the data disappearance
still remains.
Sorry for the inconvinience.
Please teach us when you find another problem like this.

Regards,
--
U.Nakamura usa@garbagecollect.jp

=end

Also available in: Atom PDF