On 17-12-2011, at 15:02, Allin Cottrell wrote:
On Sat, 17 Dec 2011, Riccardo (Jack) Lucchetti wrote:
> On Fri, 16 Dec 2011, Allin Cottrell wrote:
>
>> On Fri, 16 Dec 2011, Allin Cottrell wrote:
>>
>>> My proposed fix is that we always output TeX in UTF-8, regardless of the
>>> platform and the system text encoding. This means that when we output
>>> "complete" TeX files (with a header) they will include:
>>>
>>> \usepackage{ucs}
>>> \usepackage[utf8x]{inputenc}
>>>
>>> Does anyone see a problem with this? Or have an alternative solution?
>>
>> Sorry, that's not quite accurate. The above-mentioned \usepackage
>> instructions to LaTeX would NOT be included if
>>
>> (a) gretl was compiled with the --disable-nls switch or
>> (b) gretl is running in English.
>>
>> But they would be included (and output would be UTF-8 encoded)
>> in all other cases, under my proposal.
>
> Two things:
>
> 1) I don't see any harm in providing utf8 support even when the language is
> English. Doesn't do any harm, does it?
>
> 2) Is it really necessary to use the extended utf8x set? This may cause
> problems because, IIRC, the package that TeXlive calls ucs is "unicode" in
> MikTeX. Can't we just get away with
>
> \uespackage[utf8]{inputenc}
Ah, maybe so. Does that require the ucs package, or is inputenc
self-contained with the plain "utf8" option?
I just tested this with a complete TexLive 2011 on Mac OS X
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\begin{document}
test
\end{document}
No error messages from LaTeX.
Pdf generated.
So it seems that you can leave out ucs.
Berend