Vincent Lefevre wrote...

> 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
(...)

From wheezy (5.11) on, file also prints a file encoding, like

| LaTeX 2e document, UTF-8 Unicode text

That one is guessed from the file content, not by eximation of
statements like 'inputenc'. Is that sufficient for you?

> 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}

Seems feasible but still requires some hackery using regular
expressions.

    Christoph

Attachment: signature.asc
Description: Digital signature

Reply via email to