Subject: Re: [sup-talk] Help - sup is garbling characters and chopping off the ends of lines

From: Hamish D <[email-masked]>
Date: Fri, 30 Sep 2011 19:03:24 +0100

> gmail -> offlineimap -> sup on Ubuntu natty (all updates) x64 using xmonad
> and xterm with en-GB.UTF-8 locale
> I get the usual "missing ncursesw" and "cannot determine locale" but I don't
> think they are the cause of this issue.
> The problem is that some of the messages have the ends of their lines
> chopped off.

Have you checked if the message is just indented a bit? If it is in a
string of replies, then press 'n' to go down until the message is
selected and then press '[' to reset the margin.

If I read them via the gmail web interface or mutt then they
> are fine.  The text as rendered by sup is:
> --- start
> different departments and he didnM-b~@~Yt have percentages, but the most com
> --- end

This will be related to the lack of ncursesw - if you:

sudo apt-get install libncursesw5-dev rubygems
sudo gem install ncursesw

Then you should get the full range of characters.

Hamish
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Colin Yates <[email-masked]>
Date: Wed, 28 Sep 2011 22:39:56 +0100

Hi all,

The problem is that some of the messages have the ends of their lines
chopped off.  If I read them via the gmail web interface or mutt then they
are fine.  The text as rendered by sup is:

--- start

the text as rendered by the web and mutt:

--- start
different departments and he didn’t have percentages, but the most common is
--- end

the test as rendered by sup's source view (V):

--- start
different departments and he didn=92t have percentages, but the most common=
 is
--- end

I also installed on a Debian stable server with the same result.

Any ideas?  I really want to be able to use sup but this is a blocker.

Newbie here, so please go gently :)

Col

---

From: Hamish D <[email-masked]>
Date: Sat, 1 Oct 2011 13:50:56 +0100

On 30 September 2011 20:10, Colin Yates <[email-masked]> wrote:
>  gem1.9.1 install  ncursesw
> Building native extensions.  This could take a while...
> ERROR:  Error installing ncursesw:
>        ERROR: Failed to build gem native extension.
>
> /usr/bin/ruby1.9.1 extconf.rb
> checking for unistd.h... yes
> checking for locale.h... yes
> checking for ncurses.h... no
> checking for ncurses/curses.h... no
> checking for curses.h... no
> *** extconf.rb failed ***

This means you don't have the development library of ncurses
installed, so you need to do:

sudo aptitude install libncurses5-dev libncursesw5-dev

(From http://sup.rubyforge.org/wiki/wiki.pl?Debian/Ubuntu_Hints )

Hamish

---

From: Colin Yates <[email-masked]>
Date: Fri, 30 Sep 2011 19:25:18 +0100

I upgraded to oneric and the wrapping issue has gone away - it was definitely a bug.

I cannot install the ncursesw gem due to a missing dependency - after install ruby1.9full and just about every ncurses package I could find I gave up :).

No worries - the UTF-8 issue is less of an issue than the wrapping.

---

From: Hamish D <[email-masked]>
Date: Fri, 30 Sep 2011 19:58:40 +0100

> I cannot install the ncursesw gem due to a missing dependency - after install ruby1.9full and just about every ncurses package I could find I gave up :).

Do you get an error message about 'mkmf' - if so then you need to
install ruby-dev (or ruby1.9.1-dev) in order to get that. And make
sure you use gem1.9.1 if you are using ruby 1.9.

Anyway, glad to hear your main problem has been solved.
Hamish
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk