<P></P> <P>In the bad old days this used to be quite a hassle. Every separate program had to be convinced individually to leave your bits alone. Not that all is easy now, but recently a lot of gnu utilities have learned to react to <CODE>LC_CTYPE=iso_8859_1</CODE> or <CODE>LC_CTYPE=iso-8859-1</CODE>. Try this first, and if it doesn't help look at the hints below.</P> <P>First of all, the 8-th bit should survive the kernel input processing, so make sure to have <CODE>stty cs8 -istrip -parenb</CODE> set.</P> <P>A. For <CODE>emacs</CODE>, put lines <BLOCKQUOTE><CODE> <PRE> (standard-display-european t) (set-input-mode nil nil 1) (require 'iso-syntax) </PRE> </CODE></BLOCKQUOTE>
and perhaps also <BLOCKQUOTE><CODE> <PRE> (load-file "iso-insert.el") (define-key global-map [?-.] 8859-1-map) </PRE> </CODE></BLOCKQUOTE>
into your <CODE>
HOME/.emacs < /CODE > .(Thelatterlinewillnotworkunder < CODE > xterm < /CODE > , ifyouuse < CODE > emacs - nw < /CODE > , butinthatcaseyoucanput < BLOCKQUOTE > < CODE > < PRE > XTerm*VT100.Translations : #overrideI>Ctrl & lt;KeyPress & gt;. : string( & quot;308 & quot;) < /PRE > < /CODE > < /BLOCKQUOTE >
inyour < CODE > .Xresources < /CODE > .) < /P > < P > B.For < CODE > less < /CODE > , put < CODE > LESSCHARSET = latin1 < /CODE > intheenvironment. < /P > < P > C.For < CODE > ls < /CODE > , givetheoption < CODE > - N < /CODE > .(Probablyyouwanttomakeanalias.) < /P > < P > D.For < CODE > bash < /CODE > (version1.13.*), put < BLOCKQUOTE > < CODE > < PRE > setmeta - flagonsetconvert - metaoff < /PRE > < /CODE > < /BLOCKQUOTE >
and, accordingtotheDanishHOWTO, < BLOCKQUOTE > < CODE > < PRE > setoutput - metaon < /PRE > < /CODE > < /BLOCKQUOTE >
intoyour < CODE >HOME/.inputrc</CODE>.</P> <P>E. For <CODE>tcsh</CODE>, use <BLOCKQUOTE><CODE> <PRE> setenv LANG US_en setenv LC_CTYPE iso_8859_1 </PRE> </CODE></BLOCKQUOTE>
If you have nls on your system, then the corresponding routines are used. Otherwise <CODE>tcsh</CODE> will assume iso_8859_1, regardless of the values given to LANG and LC_CTYPE. See the section NATIVE LANGUAGE SYSTEM in tcsh(1). (The Danish HOWTO says: <CODE>setenv LC_CTYPE ISO-8859-1; stty pass8</CODE>)</P> <P>F. For <CODE>flex</CODE>, give the option <CODE>-8</CODE> if the parser it generates must be able to handle 8-bit input. (Of course it must.)</P> <P>G. For <CODE>elm</CODE>, set <CODE>displaycharset</CODE> to <CODE>ISO-8859-1</CODE>. (Danish HOWTO: <CODE>LANG=C</CODE> and <CODE>LC_CTYPE=ISO-8859-1</CODE>)</P> <P>H. For programs using curses (such as <CODE>lynx</CODE>) David Sibley reports: The regular curses package uses the high-order bit for reverse video mode (see flag _STANDOUT defined in <CODE>/usr/include/curses.h</CODE>). However, <CODE>ncurses</CODE> seems to be 8-bit clean and does display iso-latin-8859-1 correctly.</P> <P>I. For programs using <CODE>groff</CODE> (such as <CODE>man</CODE>), make sure to use <CODE>-Tlatin1</CODE> instead of <CODE>-Tascii</CODE>. Old versions of the program <CODE>man</CODE> also use <CODE>col</CODE>, and the next point also applies.</P> <P>J. For <CODE>col</CODE>, make sure 1) that it is fixed so as to do <CODE>setlocale(LC_CTYPE,"");</CODE> and 2) to put <CODE>LC_CTYPE=ISO-8859-1</CODE> in the environment.</P> <P>K. For <CODE>rlogin</CODE>, use option <CODE>-8</CODE>.</P> <P>L. For <CODE>joe</CODE>, <CODE>sunsite.unc.edu:/pub/Linux/apps/editors/joe-1.0.8-linux.tar.gz</CODE> is said to work after editing the configuration file. Someone else said: <CODE>joe</CODE>: Put the <CODE>-asis</CODE> option in <CODE>/isr/lib/joerc</CODE> in the first column.</P> <P>M. For LaTeX: <CODE></CODE>. For LaTeX2e: <CODE></CODE> where <CODE>isolatin.sty</CODE> is available from <CODE>ftp://ftp.vlsivie.tuwien.ac.at/pub/8bit</CODE>.</P> <P>A nice discussion on the topic of ISO-8859-1 and how to manage 8-bit characters is contained in the file <CODE>grasp.insa-lyon.fr:/pub/faq/fr/accents</CODE> (in French). Another fine discussion (in English) can be found in <CODE>rtfm.mit.edu:pub/usenet-by-group/comp.answers/character-sets/iso-8859-1-faq</CODE>. And another(?), in <CODE>ftp.vlsivie.tuwien.ac.at:/pub/8bit/FAQ-ISO-8859-1</CODE>.</P> <P></P> <HR> <P> <A HREF="Keyboard-HOWTO-13.html">Next</A> Chapter, <A HREF="Keyboard-HOWTO-11.html">Previous</A> Chapter <P> Table of contents of <A HREF="Keyboard-HOWTO.html#toc12">this chapter</A>, General <A HREF="Keyboard-HOWTO.html#toc">table of contents</A></P> <P> <A HREF="Keyboard-HOWTO.html">Top</A> of the document, <A HREF="#0"> Beginning of this Chapter</A></P> </BODY> </HTML>