Skip to content
Tcl Source Code Changes To Migrating scripts to Tcl 9
Login

Changes To Migrating scripts to Tcl 9

Changes to "Migrating scripts to Tcl 9" between 2023-11-26 14:54:12 and 2023-12-20 13:33:06

︙
146
147
148
149
150
151
152







153
154
155
156
157
158
159
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166







+
+
+
+
+
+
+








Note that instances of the `load` command that do not have the second
argument specified need not be changed.

In addition, Tcl 9 does not restrict the names to ASCII. In practice
this should not have any compatibility issues.

In addition, library names compiled with TCL9 headers get the prefix "tcl9" in its name.
The aim is to have a version for TCL8.7 and TCL9 in the same folder.

The names are as follows:

   *   tk87.dll -> tcl9tk87.dll (on Windows)
   *   libtk8.7.so -> libtcl9tk8.7.so (on UNIX)

See [TIP 595](https://core.tcl-lang.org/tips/doc/trunk/tip/595.md).

## Default encoding for scripts is UTF-8

The default encoding used when reading scripts, either with the `source`
command without an explicit `-encoding` option, or passed as a command
︙