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

[ Bug ] Encoding::CompatibilityError #8

Open
tperraut opened this issue Sep 9, 2021 · 0 comments
Open

[ Bug ] Encoding::CompatibilityError #8

tperraut opened this issue Sep 9, 2021 · 0 comments

Comments

@tperraut
Copy link

tperraut commented Sep 9, 2021

I updated bisu to version 1.10.2 and now I am getting this error :

Traceback (most recent call last):
        17: from /usr/local/bin/bisu:23:in `<main>'
        16: from /usr/local/bin/bisu:23:in `load'
        15: from /Users/tperraut/.gem/gems/bisu-1.10.2/bin/bisu:4:in `<top (required)>'
        14: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu.rb:26:in `run'
        13: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/config.rb:27:in `localize_files'
        12: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/config.rb:27:in `each'
        11: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/config.rb:28:in `block in localize_files'
        10: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/config.rb:28:in `each'
         9: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/config.rb:30:in `block (2 levels) in localize_files'
         8: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu.rb:34:in `block in run'
         7: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu.rb:142:in `localize_file'
         6: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu.rb:142:in `each_line'
         5: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu.rb:143:in `block in localize_file'
         4: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/localizer.rb:20:in `localize'
         3: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/localizer.rb:20:in `map'
         2: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/localizer.rb:22:in `block in localize'
         1: from /Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/localizer.rb:84:in `process'
/Users/tperraut/.gem/gems/bisu-1.10.2/lib/bisu/localizer.rb:84:in `gsub': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)

According to the issue, it seems coming from :

text = text.gsub("...", "…")

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

No branches or pull requests

1 participant