Sujet : Re: Tcl9: source files are interpreted as utf-8 by default
De : luc (at) *nospam* sep.invalid (Luc)
Groupes : comp.lang.tclDate : 09. Jan 2025, 00:28:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250108202851.4dbb65c8@lud1.home>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
On Wed, 8 Jan 2025 22:53:40 -0000 (UTC), Rich wrote:
Won't that cause problems if the system is iso-8859-1?
>
Only if windows tries to interpret the UTF-8 data as iso-8859
characters. But as far as the Tcl scripts go, once the scripts are
UTF-8, and [source] is using UTF-8 to read them, the fact that windows
system might be iso-8859 is irrelivant.
I was thinking that if the Windows user edits the file on Windows,
maybe Windows will write it as iso-8859. I honestly don't know.
8.6.6 handled Unicode fine. In fact, 8.5 handled Unicode (so long as
one stuck to the BMP) just fine.
I am positive that 8.6.6 only partially supports Unicode. I found many
characters that would not display correctly on a text widget and would
be saved as garbled content if captured in the widget and written to
file. I even had problems with glob and other commands when applied to
some file names. For example, some html page I had downloaded from
somewhere had something to do with countries and the page title had
Unicode flags in the title, so the title and the flags carried over
to the file name when I saved it. The complete implementation of
Unicode begins in 8.6.10 or 8.6.13, I can't remember which, I think
it's 8.6.13.
I know that is specifically mentioned in a wikit page, I can't
remember which one but that is not terribly relevant right now.
-- Luc>