From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Fri, 31 Jul 2009 08:56:52 -0700 Subject: [sup-talk] sup on opensolaris In-Reply-To: References: Message-ID: <1249055178-sup-7149@masanjin.net> Hi Tom, Thanks for the report! It's nice to have another system "supported", at least technically. Reformatted excerpts from Tomas Carnecky's message of 2009-07-30: > 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?). The ncurses field stuff is some hellish bullshit that I hate with all my heart. It may very well be a locale problem... I really don't want to debug it. > 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. If it's not too much work to clean up, I'd be interested in this patch. The field buffer stuff is broken in weird ways anyways (the history never seems to be quite right), and anything that reduces the reliance on ncurses is always the right approach. > - strftime("%P") is a GNU extension, I work around this by using > strftime("%p").downcase. Submit a patch! I'm fine with this. > - Iconv.iconv(target + "//IGNORE", charset, text + " ") <- the "// > IGNORE" is causing an InvalidEncoding exception, removing it didn't > seem to cause any regressions Hm, this is a trickier one. Allegedly the //IGNORE reduces the exceptions thrown by Iconv, but since we're catching them all anyways, we might be able to get away with removing this. Or we could special-case it to your arch. -- William