Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (1 / 5) |
Uptime: | 39:25:50 |
Calls: | 282 |
Calls today: | 1 |
Files: | 884 |
Messages: | 75,729 |
Folks,
is it possible in Tcl9 to get the old (8.x) behaviour back,
that tcl files are read with system encoding instead of
utf-8?
Is there e.g. an environment variable or a configure
switch to change this?
I found:
--with-encoding encoding for configuration values (default: utf-8)
but, what is meant with "configuration values"?
I've the problem that almost all of my sources contain some
umlauts and are, for legacy reasons, in iso8859-1. If it's
not possible to get the old behavior back, I have to
edit every pkgIndex.tcl and every tclsh <script> call
before I'm able to migrate.
Thanks in advance
Uwe
source -encoding iso8859-1 $file
I put those in the package index files which source the package files.
Remark that msgcat message files are always in utf-8.
Am 13.12.2024 um 16:02 schrieb Uwe Schmitz:
Folks,
is it possible in Tcl9 to get the old (8.x) behaviour back,
that tcl files are read with system encoding instead of
utf-8?
Is there e.g. an environment variable or a configure
switch to change this?
I found:
--with-encoding encoding for configuration values (default: utf-8)
but, what is meant with "configuration values"?
I've the problem that almost all of my sources contain some
umlauts and are, for legacy reasons, in iso8859-1. If it's
not possible to get the old behavior back, I have to
edit every pkgIndex.tcl and every tclsh <script> call
before I'm able to migrate.
Thanks in advance
Uwe
Hi Uwe,
source -encoding iso8859-1 $file
I put those in the package index files which source the package files.
Remark that msgcat message files are always in utf-8.
The great TCL9 migration helper by Ashok tries to find the related files.
Take care,
Harald