Package: file
Version: 5.04-1
Severity: wishlist
On a LaTeX file, one currently gets:
LaTeX 2e document text
It would be useful to have the encoding too, e.g.
ISO-8859-1 LaTeX 2e document text
UTF-8 LaTeX 2e document text
so that one can automatically call iconv via LESSOPEN when viewing
a file with "less", for instance.
On LaTeX files, the encoding can be obtained unambiguously (well,
in practice) by looking at \usepackage[...]{inputenc} commands,
e.g.
\usepackage[latin1]{inputenc}
\usepackage[utf8]{inputenc}
Note: ignore everything that is after a "%" character, as one
sometimes comments out such commands with it.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages file depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libmagic1 5.04-1 File type determination library us
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
file recommends no packages.
file suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]