Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: octplane@gmail.com (Pierre Baillet)
Subject: [sup-talk] Want utf-8 ?
Date: Tue, 9 Oct 2007 15:21:17 +0200	[thread overview]
Message-ID: <6205b42d0710090621k580b1f0g2ac2633530668553@mail.gmail.com> (raw)

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 


             reply	other threads:[~2007-10-09 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 13:21 Pierre Baillet [this message]
2007-11-02  1:33 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6205b42d0710090621k580b1f0g2ac2633530668553@mail.gmail.com \
    --to=octplane@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox