From mboxrd@z Thu Jan 1 00:00:00 1970 From: octplane@gmail.com (Pierre Baillet) Date: Tue, 9 Oct 2007 15:21:17 +0200 Subject: [sup-talk] Want utf-8 ? Message-ID: <6205b42d0710090621k580b1f0g2ac2633530668553@mail.gmail.com> Hi, I quickly hacked utf-8 support in sup. My first modification aimed at allowing Unicode alias in the contact manager. I succeeded in doing this and also enabled utf-8 support in the inbox-mode (and probably in some other place)... How to ? ======= - After installing ncurses, go to ~GEM_HOME/gems/ncurses-0.9.1 and apply extconf.patch - make, make install you now have a ncursesw ruby library - again, go to ~GEM_HOME/gems/sup- 0.1/lib and apply patch sup.rb.patch - run sup sup should now display accented keys correctly in the inbox mode. move to the contact manager 'C', go to some contact, press 'a' and type stuff with accent (like "ch?rie"). The accent should display normally in the input field AND in the contact manager. the sup.rb patch only enforces a call to setlocale in order to take the current user locale in account (needed for ncurses to display correctly accented characters). All the rest is done via my ncurses patch (which I'm about to suggest to the ncurses maintainer) Please let me know how it goes for you ! -- Pierre Baillet -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: extconf.patch Type: application/octet-stream Size: 759 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: sup.rb.patch Type: application/octet-stream Size: 650 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071009/f1e65d10/attachment-0003.obj