Public bug reported:

Binary package hint: libtermios-ruby1.8


This info applies to the following example scripts:

ls /usr/share/doc/libtermios-ruby1.8/examples/modem_check*.rb
/usr/share/doc/libtermios-ruby1.8/examples/modem_check0.rb
/usr/share/doc/libtermios-ruby1.8/examples/modem_check1.rb
/usr/share/doc/libtermios-ruby1.8/examples/modem_check2.rb

Fully up to date dapper install.

Package: libtermios-ruby1.8
Version: 0.9.4-5

I changed the following line:

DEVICE = '/dev/ttymodem'

to:

DEVICE = '/dev/ttyS0'

to point to my modem.

Run the script with the line:

ruby modem_check0.rb

Follows is the output:

[EMAIL PROTECTED]:~/Projects$ ruby modem_check0.rb
current tio:
  ispeed = B9600, ospeed = B9600
   iflag = ICRNL | IXON
   oflag = ONLCR | OPOST
   cflag = CBAUD | CLOCAL | CREAD | CS6 | CS7 | CS8 | EXTA | EXTB | HUPCL
   lflag = ECHO | ECHOCTL | ECHOE | ECHOK | ECHOKE | ICANON | IEXTEN | ISIG
      cc = VINTR=3 VQUIT=28 VERASE=127 VKILL=21 VEOF=4 VTIME=0 VMIN=1 VSWTC=0 
VSTART=17 VSTOP=19 VSUSP=26 VEOL=0 VREPRINT=18 VDISCARD=15 VWERASE=23 VLNEXT=22 
VEOL2=0
new tio:
  ispeed = B115200, ospeed = B115200
   iflag = IGNPAR
   oflag =
   cflag = CREAD | CRTSCTS | CS6 | CS7 | CS8
   lflag =
      cc = VINTR=0 VQUIT=0 VERASE=0 VKILL=0 VEOF=0 VTIME=0 VMIN=1 VSWTC=0 
VSTART=0 VSTOP=0 VSUSP=0 VEOL=0 VREPRINT=0 VDISCARD=0 VWERASE=0 VLNEXT=0 VEOL2=0
modem_check0.rb:51:in `setattr': integer 2147483824 too big to convert to `int' 
(RangeError)
        from modem_check0.rb:51

** Affects: libtermios-ruby (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
Example scripts fallover with error
https://launchpad.net/bugs/54909

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to