Package: ruby-airbrussh / 1.3.1-2+deb10u1

Metadata

Package Version Patches format
ruby-airbrussh 1.3.1-2+deb10u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
utf8 encoding.patch | (download)

CHANGELOG.md | 1 1 + 0 - 0 !
lib/airbrussh/console.rb | 10 9 + 1 - 0 !
test/airbrussh/console_test.rb | 11 11 + 0 - 0 !
3 files changed, 21 insertions(+), 1 deletion(-)

 [patch] handle console output that is improperly encoded

Not sure why, but in some cases the data received from SSHKit claims to
be encoded as UTF-8 but is actually invalid. This causes `gsub` to blow
up with `ArgumentError: invalid byte sequence in UTF-8` when airbrussh
calls `strip_ascii_color`.

Work around this by detected invalid encoding and stripping out the
offending code points from string before calling `gsub`.