From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (c4C8F5BC1.dhcp.as2116.net. [193.91.143.76]) by mx.google.com with ESMTPSA id i9sm18491548laa.3.2013.08.15.09.50.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Aug 2013 09:50:55 -0700 (PDT) Date: Thu, 15 Aug 2013 18:49:55 +0200 From: Gaute Hope To: sup-devel Message-ID: <1376585317-sup-1707@qwerzila> In-Reply-To: <1376584400-sup-6242@qwerzila> References: <1376582732-sup-7192@sam.mediasupervision.de> <1376584400-sup-6242@qwerzila> Subject: Re: [sup-devel] sup 0.14: Encoding::UndefinedConversionError from thread: load threads for thread-index-mode Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable User-Agent: Sup/git 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 excepti= on: > > = > > --- 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 ||=3D Unicode.width(self, false) > + @display_length ||=3D 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