Skip to content

Instantly share code, notes, and snippets.

@qichunren
Created February 17, 2011 03:17
Show Gist options
  • Save qichunren/830892 to your computer and use it in GitHub Desktop.
Save qichunren/830892 to your computer and use it in GitHub Desktop.
             /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rcov-0.9.9/lib/rcov/file_statistics.rb:115:in `block in is_code?': invalid byte sequence in US-ASCII (ArgumentError)

rcov 0.9.8

rake spec:rcov not work

How to fix it?

in file

adding force_encode to line 115 of rcov-0.9.9/lib/rcov/file_statistics.rb file so it looks like

           if /^=begin\b/ =~ line.force_encoding("utf-8") 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment