square/cane

Invalid byte sequence in UTF-8 (ArgumentError)

bf4 opened this issue · 1 comments

bf4 commented

Running against cane 2.5.2

on osx snowleopard, cruby 2.0.0-p195 installed via rvm, run via metric_fu 4.4.0

~/.rvm/gems/ruby-2.0.0-p195@global/gems/cane-2.5.2/lib/cane/style_check.rb:57:in `violations_for_line': invalid byte sequence in UTF-8 (ArgumentError)
        from ~/.rvm/gems/ruby-2.0.0-p195@global/gems/cane-2.5.2/lib/cane/style_check.rb:40:in `block (2 levels) in violations'

It would appear this was fixed by cane 2.6.0, but I didn't see a ticket for that, so am creating an issue to document it.

My guess it was the Bugfix: better handling of invalid strings

Correct, fixed.