[DRE-maint] Bug#736571: ruby-ncurses example program does not work.

Yukiharu YABUKI yabuki at netfort.gr.jp
Sat Jan 25 06:30:54 UTC 2014


Package: ruby-ncurses
Version: 1.3.1-2
Severity: normal
Tags: upstream

Dear Maintainer,

I installed ruby-ncurses package. I'd like to know how to use
ruby-ncurses. I ran example programs in
'/usr/share/doc/ruby-ncurses/examples/*.rb' I met 2 bugs in
read_line.rb and tclock.rb with ruby1.9 package.

(1) ruby_line.rb looks like ok. When you hit any key. you will
    see error message below.

abuki at yelona:~/src/ruby/ruby-ncurses/examples$ ruby read_line.rb 
read_line.rb:36:in `block in read_line': bad value for range (ArgumentError)
	from read_line.rb:20:in `loop'
	from read_line.rb:20:in `read_line'
	from read_line.rb:62:in `<main>'

(2) tclock.rb does not start. You will see

abuki at yelona:~/src/ruby/ruby-ncurses/examples$ ruby tclock.rb
tclock.rb:51:in `mvaddch': can't convert String into Integer (TypeError)
	from tclock.rb:51:in `plot'
	from tclock.rb:91:in `dline'
	from tclock.rb:177:in `<main>'

I ran sample program in stable and unstable. Both of them can 
reproduceed the errors.

Best
Yukiharu.

-- System Information:
Debian Release: 7.3
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby-ncurses depends on:
ii  libc6                         2.13-38+deb7u1
ii  libncursesw5                  5.9-10
ii  libruby1.8                    1.8.7.358-7.1+deb7u1
ii  libruby1.9.1                  1.9.3.194-8.1+deb7u2
ii  libtinfo5                     5.9-10
ii  ruby                          1:1.9.3
ii  ruby1.8 [ruby-interpreter]    1.8.7.358-7.1+deb7u1
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.194-8.1+deb7u2

ruby-ncurses recommends no packages.

ruby-ncurses suggests no packages.

-- no debconf information



More information about the Pkg-ruby-extras-maintainers mailing list