Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change_logger.rb:80:in `index': invalid byte sequence in UTF-8 (ArgumentError) #23

Merged
merged 2 commits into from
Sep 24, 2013

Conversation

rderoldan1
Copy link
Contributor

Hi guys

I had been using your gem, so in the las update (1.3) I found that the last solution in encoding problem doesn't work in a little couple special cases, so based in this stack overflow answer I had fixed it, please try and tell me it is working in your projects

$ katip
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:80:in `index': invalid byte sequence in UTF-8 (ArgumentError)
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:80:in `block in parse_change_log'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:76:in `each'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:76:in `parse_change_log'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:18:in `log_changes'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/bin/katip:14:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/katip:23:in `load'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/katip:23:in `<main>'

Enforce encoding

$ LANG=utf-8 katip
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:80:in `index': invalid byte sequence in UTF-8 (ArgumentError)
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:80:in `block in parse_change_log'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:76:in `each'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:76:in `parse_change_log'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/lib/katip/change_logger.rb:18:in `log_changes'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/katip-1.3.0/bin/katip:14:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/katip:23:in `load'
    from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/katip:23:in `<main>'

baygunm pushed a commit that referenced this pull request Sep 24, 2013
change_logger.rb:80:in `index': invalid byte sequence in UTF-8 (ArgumentError)
@baygunm baygunm merged commit 0b85ff9 into lab2023:develop Sep 24, 2013
@rderoldan1
Copy link
Contributor Author

Can you release the new version with this issue fixed?

@baygunm
Copy link
Contributor

baygunm commented Oct 30, 2013

Sorry making you wait this long. New release is coming on Nov 1st 2013.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants