encoding of Italian man pages
Fabio Rossi <[email protected]> Mon, 21 Aug 2006 23:51:51 +0200
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have installed the Italian man pages of the shadow package on my system. =
The=20
character encoding of these manuals is UTF-8. My current locale is set as
LANG=3Dit_IT.UTF-8
LC_CTYPE=3D"it_IT.UTF-8"
LC_NUMERIC=3D"it_IT.UTF-8"
LC_TIME=3D"it_IT.UTF-8"
LC_COLLATE=3DPOSIX
LC_MONETARY=3D"it_IT.UTF-8"
LC_MESSAGES=3Den_GB.UTF-8
LC_PAPER=3D"it_IT.UTF-8"
LC_NAME=3D"it_IT.UTF-8"
LC_ADDRESS=3D"it_IT.UTF-8"
LC_TELEPHONE=3D"it_IT.UTF-8"
LC_MEASUREMENT=3D"it_IT.UTF-8"
LC_IDENTIFICATION=3D"it_IT.UTF-8"
LC_ALL=3D
Man expects to find the man pages by default in latin1 (ISO-8859-1) encondi=
ng.=20
=46rom the info page of troff:
*********************
Currently, the following input encodings are available.
cp1047
This input encoding works only on EBCDIC platforms (and vice
versa, the other input encodings don't work with EBCDIC); the file
`cp1047.tmac' is by default loaded at start-up.
latin-1
This is the default input encoding on non-EBCDIC platforms; the
file `latin1.tmac' is loaded at start-up.
latin-2
To use this encoding, either say `.mso latin2.tmac' at the very
beginning of your document or use `-mlatin2' as a command line
argument for `groff'.
latin-9 (latin-0)
This encoding is intended (at least in Europe) to replace latin-1
encoding. The main difference to latin-1 is that latin-9 contains
the Euro character. To use this encoding, either say
`.mso latin9.tmac' at the very beginning of your document or use
`-mlatin9' as a command line argument for `groff'.
*********************
When using man, groff converts the encoding of a man page to the current=20
locale. So there is a awful conversion (UTF-8 -> UTF-8) which messes up non=
=20
standard 7bit ASCII characters.
It would be great to have ISO-8859-1 default encoding for Italian man pages=
to=20
avoid the problem described above.
Best regards,
=46abio