From: Gaute Hope <eg@gaute.vetsj.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] sup 0.14: Encoding::UndefinedConversionError from thread: load threads for thread-index-mode
Date: Thu, 15 Aug 2013 18:49:55 +0200 [thread overview]
Message-ID: <1376585317-sup-1707@qwerzila> (raw)
In-Reply-To: <1376584400-sup-6242@qwerzila>
Excerpts from Gaute Hope's message of 2013-08-15 18:39:45 +0200:
> Excerpts from Gregor Hoffleit's message of 2013-08-15 18:21:43 +0200:
> > Sup 0.14 fails for me just after the start with the following exception:
> >
> > --- Encoding::UndefinedConversionError from thread: load threads for thread-index-mode
> > "\xE2" from ASCII-8BIT to UTF-8
> > /var/lib/gems/1.9.1/gems/sup-0.14.0/lib/sup/util.rb:259:in `width'
> diff --git a/lib/sup/util.rb b/lib/sup/util.rb
> index 5cff6fa..4579a38 100644
> --- a/lib/sup/util.rb
> +++ b/lib/sup/util.rb
> @@ -256,7 +256,7 @@ end
>
> class String
> def display_length
> - @display_length ||= Unicode.width(self, false)
> + @display_length ||= Unicode.width(self.fix_encoding, false)
> end
>
> def slice_by_display_length len
Created pull request #128, please test if you have the chance.
https://github.com/sup-heliotrope/sup/pull/128
Regards, Gaute
next prev parent reply other threads:[~2013-08-15 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-15 16:21 Gregor Hoffleit
2013-08-15 16:39 ` Gaute Hope
2013-08-15 16:49 ` Gaute Hope [this message]
2013-08-16 13:13 ` Gregor Hoffleit
2013-08-16 15:15 ` Gregor Hoffleit
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=1376585317-sup-1707@qwerzila \
--to=eg@gaute.vetsj.com \
--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