From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] Unicode
Date: Wed, 25 Jul 2007 10:42:38 -0700 [thread overview]
Message-ID: <1185385187-sup-767@south> (raw)
In-Reply-To: <1185377570-sup-5514@zap.electricrain.com>
Excerpts from Dan Sully's message of Wed Jul 25 08:34:29 -0700 2007:
> I know Unicode support in Ruby is.. lacking. But is there anything I
> can do to prevent the dreaded unicode question marks (often followed
> by a tilde), which totally destroy the curses layout.
Here's what has worked for me:
1. Use gnome-terminal
2. set LANG=en_US.UTF-8
Then, somehow, magically, using ncurses to display utf8 characters just
works. Well, I haven't tried wide characters, but accented characters
work.
> I see that iconv is being used in sup, but I'm not sure when/why.
Sup uses iconv to convert messages (and individual headers) marked as
in specific encodings to your local encoding, as determined by LC_CTYPE
and LANG environment variables.
What *doesn't* work right now is calculating the lengths of unicode
strings, so the display is a little screwed up for characters that take
more than one utf-8 byte. But still usable.
--
William <wmorgan-sup at masanjin.net>
next prev parent reply other threads:[~2007-07-25 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-25 15:34 Dan Sully
2007-07-25 17:42 ` William Morgan [this message]
2007-07-25 17:54 ` Dan Sully
2007-07-25 18:50 ` William Morgan
2007-07-25 19:00 ` Dan Sully
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=1185385187-sup-767@south \
--to=wmorgan-sup@masanjin.net \
/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