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

incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) #355

Closed
nanooq opened this issue Dec 23, 2014 · 3 comments
Closed

Comments

@nanooq
Copy link

nanooq commented Dec 23, 2014

This happens when polling and exists sup:

[2014-12-23 16:19:03 +0000] WARNING: DL is deprecated, please use Fiddle
[2014-12-23 16:19:29 +0000] ERROR: oh crap, an exception
----------------------------------------------------------------
We are very sorry. It seems that an error occurred in Sup. Please
accept our sincere apologies. Please submit the contents of
/home/lora/.sup/exception-log.txt and a brief report of the
circumstances to https://github.com/sup-heliotrope/sup/issues so that
we might address this problem. Thank you!

Sincerely,
The Sup Developers
----------------------------------------------------------------
--- Encoding::CompatibilityError from thread: poll after loading inbox
incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/header.rb:81:in `=~'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/header.rb:81:in `parse'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:233:in `block in parse_header'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:229:in `each'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:229:in `parse_header'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:194:in `parse_low'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:183:in `parse'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:331:in `parse'
/home/lora/.rvm/gems/ruby-2.1.5/gems/rmail-sup-1.0.1/lib/rmail/parser.rb:345:in `read'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:489:in `message_to_chunks'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:470:in `block in message_to_chunks'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:470:in `map'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:470:in `message_to_chunks'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:265:in `load_from_source!'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/message.rb:370:in `build_from_source'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:204:in `block in poll_from'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/maildir.rb:161:in `block in poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/maildir.rb:160:in `each'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/maildir.rb:160:in `each_with_index'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/maildir.rb:160:in `poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:201:in `poll_from'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:146:in `block (2 levels) in do_poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:136:in `each'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:136:in `block in do_poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:135:in `synchronize'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:135:in `do_poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/util.rb:658:in `method_missing'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/modes/poll_mode.rb:15:in `poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:58:in `poll_with_sources'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/poll.rb:94:in `poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup/util.rb:658:in `method_missing'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/bin/sup:222:in `block (2 levels) in <module:Redwood>'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup.rb:88:in `block in reporting_thread'

$ which sup
/home/lora/.rvm/gems/ruby-2.1.5/bin/sup

In order to prove my suspicion, that this is related to polling, I started sup once more and initiated polling. I got the same error and these additional lines:

--- NoMethodError from thread: user-invoked poll
undefined method `poll' for nil:NilClass
(eval):1:in `poll'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/bin/sup:328:in `block in <module:Redwood>'
/home/lora/.rvm/gems/ruby-2.1.5/gems/sup-0.20.0/lib/sup.rb:88:in `block in reporting_thread'
@gauteh
Copy link
Member

gauteh commented Dec 24, 2014

You might bypass the problem by setting LC_ALL=C. This appears to be a duplicate of #205.

@gauteh gauteh closed this as completed Dec 24, 2014
@nanooq
Copy link
Author

nanooq commented Dec 24, 2014

If I run
$: LC_ALL=C sup
polling is successful, but my keybinding does not accept arrow-keys anymore and takes them for 'help'

@gauteh
Copy link
Member

gauteh commented Dec 24, 2014

Yes, it is not a permanent solution. But it gets you past the message. If you change back your locale and you need to open it again or receive a message with a similar problem you will get problems again.

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

No branches or pull requests

2 participants