El Sab, 7 de Febrero de 2009, 13:19, Neil Bothwick escribió:
> On Sat, 7 Feb 2009 13:10:31 +0000, Frank Schwidom wrote:
>
>
>> I expect, if LANG is set to html (if this locale would exist), that if
>> a file a.html contains <&gt;> and i make 'cat a.html' then '<' sould
>> appear on the console. Is the locale system flexible enough to do this?
>>
>
> That's not what locale is intended for. Even if it were, it wouldn't
> affect the output of cat, whose job is to display the contents of the file
> verbatim.
>
> Try html2text a.html.

Sorry to both for sounding like an asshole, but I can't resist.

There are programs that can output html files properly, they
are called "web browsers". Use lynx, links, elinks, w3m or
whatever fits you to "cat" html files.

What the OP want can't be achieved with locales, at least I
can't think of a way though I am admittedly no expert in the
internals of the localization subsystem.

Cheers.
-- 
Jesús Guerrero



Reply via email to