Sujet : Re: Tcl9: source files are interpreted as utf-8 by default
De : schmitzu (at) *nospam* mail.de (Uwe Schmitz)
Groupes : comp.lang.tclDate : 08. Jan 2025, 11:54:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vlllha$2nvqo$2@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Thanks for your suggestions!
I know that there are ways to work around the typing effort.
Aliases are a good start, but you have to deploy them to
other users/developers. And it's getting more cpomlicated if
you have heterogenous operating systems (thinking of Windows).
Redefining the source command is another one. In the past, I was always
very careful when it came to overwriting BuiltIns. In small
applications, this is usually manageable. But when the
applications get bigger, it's easy to lose track and
shoot yourself in the foot.
However, before I consider any of the above options,
I try to solve problems as close to the actual cause as possible.
Best regards,
Uwe
Am 07.01.2025 um 20:08 schrieb Luc:
On Tue, 7 Jan 2025 18:00:15 +0100, Uwe Schmitz wrote:
They now have to be called by
"tclsh -encoding iso8859-1 helperScript.tcl ..."
>
Thats a lot more typing.
>
**************************
The lot more typing problem can be solved with a shell alias.
In Tcl, using 'source,' you can create an alias too.
Not exactly what you wanted, but readily available here and now.