On Thu, 13 Jun 2002 18:23:05 +0200,
  "Stephan Seitz" wrote:
> 
> On Thu, Jun 13, 2002 at 09:07:13AM -0700, Tim Freedom wrote:
> > If someone would like to use utf-8 irrespective of the locale
> > setting, he/she ought to be able to do that, no ?  There are lots of
> 
> Maybe I don't understand you, but how can a textmode application like
> mutt or vim, which depends on the fonts of the xterm or the console,
> use UTF-8 if they couldn't properly display the characters?
> 
> I start mutt from xbuffy with the following script:
> 
> #!/bin/bash
> export SHELL=/bin/bash
> export LANG=de_DE.UTF-8
> export LC_CTYPE=ja_JP.UTF-8  # for Japanese input via XIM
> 
> /usr/bin/X11/xterm -u8 -fn
> "-misc-fixed-medium-*-normal-*-18-120-100-100-c-*-iso10646-1" \
> -geometry 110x44+0+0 -bg black -fg white -T Mutt -e mutt -F \
> /etc/Muttrc -F /home/fsing/stse/.mutt/muttrc.x11 "$@"
> 
> So I'm running mutt within an UTF-8 xterm without having the global
> locale set to UTF-8.

Well, you are setting a locale (LANG, LC_CTYPE); its not global,
sure - but its being set :-)

Let me explain what I'm getting at via a simple example.  Download
vim-6.1+ and compile it.  Then without having to do _anything_ you will
be able to view/compose/etc a utf-8 (both in graphical mode and/or in
a UTF-8 terminal emulator).  So what happens if you start that same
vim binary on a non-UTF-8 xterm ?  vim is smart to note that UTF-8 is
not-supported and beep at yeah.  That's pretty much all I'm advocating.

I have no problem setting the locale myself, but most applications out
there are simply reverting to native, default UTF-8 support and thus
the question/suggestion.

 .tf.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Reply via email to