ruby-tty-screen: endianness bug detected by autopkgtest

Bug #1968831 reported by Steve Langasek
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ruby-tty-screen (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

ruby-tty-screen is failing to migrate to the release pocket because the new version of the package has autopkgtests that are failing:

Failures:

  1) TTY::Screen#size_from_ioctl reads terminal size
     Failure/Error: expect(screen.size_from_ioctl).to eq([51, 211])

       expected: [51, 211]
            got: [13056, 54016]

       (compared using ==)
     # ./spec/unit/screen_spec.rb:115:in `block (4 levels) in <top (required)>'
     # ./spec/unit/screen_spec.rb:108:in `replace_streams'
     # ./spec/unit/screen_spec.rb:114:in `block (3 levels) in <top (required)>'

51 is 33 hex. 13056 is 3300 hex. There is evidently an endianness issue here with some short ints.

Steve Langasek (vorlon)
tags: added: update-excuse
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ruby-tty-screen (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.