rush
rush copied to clipboard
"invalid byte sequence in UTF-8" in os_x_processes
While working with the Workless gem, which uses rush, I got the error "invalid byte sequence in UTF-8" with the following backtrace:
vendor/local/ruby/1.9.1/gems/rush-0.6.8/lib/rush/local.rb:223:in `split'
vendor/local/ruby/1.9.1/gems/rush-0.6.8/lib/rush/local.rb:223:in `os_x_processes'
vendor/local/ruby/1.9.1/gems/rush-0.6.8/lib/rush/local.rb:149:in `processes'
vendor/local/ruby/1.9.1/gems/rush-0.6.8/lib/rush/box.rb:48:in `processes'
vendor/local/ruby/1.9.1/gems/workless-1.0.1/lib/workless/scalers/local.rb:25:in `workers'
Investigating with ps(1) revealed a print spooling process with a \xE2 character in its name; killing that process allowed rush to work normally. The system in question runs OS X 10.7.4 with Ruby 1.9.2-p290.