Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] sup on opensolaris
@ 2009-07-30 18:31 Tomas Carnecky
  2009-07-31 15:56 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Carnecky @ 2009-07-30 18:31 UTC (permalink / raw)


Kids, don't try this at home, it kills kittens! Well, not directly,  
but trying to get sup running will drive you so mad you will try to  
kill everything that moves. In other words: it doesn't work and the  
fact that I'm trying this on opensolaris doesn't make it any easier.

The biggest issue is that the ruby binary from the package manager is  
linked against the ancient solaris curses.so but ruby-ncurses needs  
ncurses.so (which, to make the issue even more complicated, is in /usr/ 
gnu/lib). When both libraries are liked into one application, they  
don't play along well (=segfaults). I had to compile ruby from source  
and make sure it's not liked with curses.so, and also patch ruby- 
ncurses slightly. I then managed to get sup to start up and read my  
mails. However, there is one issue left that I'm not able to fix:  
Ncurses.field.field_buffer() is returning garbage, and that makes is  
impossible to write mails, search and set tags etc. The problem is  
somewhere inside sup, as the ruby-ncurses example form2.rb is working  
just fine (maybe it has something to do with encoding/locale?).

I have an ugly patch for lib/sup/textfield.rb that uses its own string  
buffer instead of relying on field_buffer(). It's not perfect, but it  
at least allows me to write emails and assign tags.

Other issues:
  - strftime("%P") is a GNU extension, I work around this by using  
strftime("%p").downcase.
  - Iconv.iconv(target + "//IGNORE", charset, text + " ") <- the "// 
IGNORE" is causing an InvalidEncoding exception, removing it didn't  
seem to cause any regressions

tom



^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <1249059559-sup-8960@matrix>]

end of thread, other threads:[~2009-08-04  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-30 18:31 [sup-talk] sup on opensolaris Tomas Carnecky
2009-07-31 15:56 ` William Morgan
2009-07-31 16:59   ` Ben Walton
     [not found] <1249059559-sup-8960@matrix>
2009-08-04  9:56 ` Tomas Carnecky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox