From: Adeel Ahmad Khan <adeel@adeel.ru>
To: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] Bug: UTF-8 error when sending messages
Date: Mon, 31 Jan 2011 13:24:42 -0500 [thread overview]
Message-ID: <1296497911-sup-5024@poincare> (raw)
In-Reply-To: <mailman.75.1296431981.25874.sup-devel@rubyforge.org>
Tero Tilus <tero@tilus.net>:
> Adeel Ahmad Khan, 2011-01-29 05:11:
> > invalid byte sequence in UTF-8
> ...
> > I am using a nearly fresh installation of Sup 0.12.1 with Ruby
> > 1.9.2p136. I have LOCALE="en_US.UTF-8".
>
> Both the errors were from regex matches against message body. Somehow
> your editor doesn't know your locale or is not obeying it. As a
> result non-utf8 stuff gets saved to disk and sup gets confused.
You were right. It turned out to be an issue with editor.
Gaute Hope <eg@gaute.vetsj.com>:
> Excerpts from Adeel Ahmad Khan's message of 2011-01-29 04:11:40 +0100:
> > --- ArgumentError from thread: main
> > invalid byte sequence in UTF-8
> > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/edit-message-mode.rb:497:in `block in mentions_attachments?'
>
> Could you try if this patch fixes it (or just edit the lines manually) ?
The patch resolved that error, but I get a different one now:
--- ArgumentError from thread: main
invalid byte sequence in UTF-8
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/edit-message-mode.rb:389:in `build_message'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/modes/edit-message-mode.rb:354:in `send_message'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/buffer.rb:277:in `handle_input'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:260:in `<module:Redwood>'
/usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:69:in `<top (required)>'
/usr/bin/sup:19:in `load'
/usr/bin/sup:19:in `<main>'
It looks like another regex match.
m.body += "\n" unless m.body =~ /\n\Z/
In any case it seems to be my problem, not sup's.
Adeel
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next parent reply other threads:[~2011-01-31 19:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.75.1296431981.25874.sup-devel@rubyforge.org>
2011-01-31 18:24 ` Adeel Ahmad Khan [this message]
2011-02-01 13:34 ` Gaute Hope
2011-01-29 3:11 Adeel Ahmad Khan
2011-01-29 18:17 ` Tero Tilus
2011-01-30 15:58 ` Gaute Hope
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296497911-sup-5024@poincare \
--to=adeel@adeel.ru \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox