On 2003-07-27 13:41+0200 Björn JACKE wrote:
> On 2003-07-27 at 12:40 +0200 Øyvind A. Holm sent off:
> > Now, if I log onto my machine with a non-UTF-8 terminal program, is
> > it possible to detect if the terminal emulator understands UTF-8 and
> > eventually can tell the script (by setting an environment variable)
> > to convert the output to plain old latin1 instead?
>
> attached you find a program by Gerd Krorr, which does this and an
> example how to use this in your shell init scripts.

Thank you for your answer. Running the utf8.c program in a regular
gnome-terminal vs "xterm -u8" works fine. It detects if UTF-8 is
available, and is by checking the return value able to set an
environment variable at login time which different scripts can base
their behaviour on.

   Regards,
   Øyvind
   ---------------------------
   <uniplex> if I wanted to do
             wget -O /dev/null 
http://www.sco.com/images/pdf/education/SCO_AEP_posterfiles.zip
             in an endless loop?
      <twkm> why?
<dufflebunk> while true; do wget .... ; done
   <uniplex> whynot?
      <twkm> i see.


--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to