You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got this well known encoding issue (#2, #13), but this time not for the sources files, but for the git_info :D
One author name on our team has a German special character in his name ü, which is fairly common in Germany.
So we get this error for all his PRs :)
/usr/local/lib/ruby/gems/2.5.0/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/runner.rb:106:in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)
from /usr/local/lib/ruby/gems/2.5.0/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/runner.rb:106:in `to_json'
from /usr/local/lib/ruby/gems/2.5.0/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/runner.rb:106:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/coveralls-lcov-1.6.0/bin/coveralls-lcov:5:in `<top (required)>'
from /usr/local/bin/coveralls-lcov:23:in `load'
from /usr/local/bin/coveralls-lcov:23:in `<main>'
Got this well known encoding issue (#2, #13), but this time not for the sources files, but for the
git_info
:DOne author name on our team has a German special character in his name
ü
, which is fairly common in Germany.So we get this error for all his PRs :)
From looking at the PR changes, branch name, and
git log
I am fairly certain, that in our case it's related to these lines:https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L22
https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L97
But those lines might also become a potential problem:
https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L94
https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L96
https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L98
https://github.com/okkez/coveralls-lcov/blob/master/lib/coveralls/lcov/converter.rb#L101
I am not very familiar with Ruby, but it looks like such a solution might help here:
https://stackoverflow.com/questions/263271/converting-utf8-to-ansi-with-ruby
The text was updated successfully, but these errors were encountered: