swift 05/05/09 14:05:46 Modified: xml/htdocs/doc/en utf-8.xml Log: #91777 - Adding sections on less/man thanks to Shyam Mani
Revision Changes Path 1.14 +43 -3 xml/htdocs/doc/en/utf-8.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/utf-8.xml?rev=1.14&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/utf-8.xml?rev=1.14&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/utf-8.xml.diff?r1=1.13&r2=1.14&cvsroot=gentoo Index: utf-8.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- utf-8.xml 24 Apr 2005 16:13:48 -0000 1.13 +++ utf-8.xml 9 May 2005 14:05:46 -0000 1.14 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.13 2005/04/24 16:13:48 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.14 2005/05/09 14:05:46 swift Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide link="/doc/en/utf-8.xml"> @@ -20,8 +20,8 @@ <license /> -<version>1.9</version> -<date>2005-04-24</date> +<version>2.0</version> +<date>2005-05-08</date> <chapter> <title>Character Encodings</title> @@ -603,6 +603,46 @@ </body> </section> <section> +<title>Less</title> +<body> + +<p> +We all use a lot of <c>more</c> or <c>less</c> along with the <c>|</c> to be +able to correctly see the output of a command, like for example +<c>dmesg | less</c>. While <c>more</c> only needs the shell to be UTF-8 aware, +<c>less</c> needs an environment variable set, <c>LESSCHARSET</c> to ensure +that unicode characters are rendered correctly. This can be set in +<path>/etc/profile</path> or <path>~/.bash_profile</path>. Fire up the editor +of your choice and the add the following line to one of the files mentioned +above. +</p> + +<pre caption="Setting up the Environment variable for less"> +LESSCHARSET=utf-8 +</pre> + +</body> +</section> +<section> +<title>Man</title> +<body> + +<p> +Man pages are an integral part of any Linux machine. To ensure that any +unicode in your man pages render correctly, edit <path>/etc/man.conf</path> +and replace a line as shown below. +</p> + +<pre caption="man.conf changes for Unicode support"> +<comment>(This is the old line)</comment> +NROFF /usr/bin/nroff -Tascii -c -mandoc +<comment>(Replace the one above with this)</comment> +NROFF /usr/bin/nroff -mandoc -c +</pre> + +</body> +</section> +<section> <title>Testing it all out</title> <body> -- [email protected] mailing list
