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 2024-04-15 07:34:09 and 2024-04-15 08:48:23

︙
262
263
264
265
266
267
268




269
270
271
272
273
274
275
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279







+
+
+
+







This is due to the manifest change, not any change within TCL/Tk.

Due to that, the change to UTF-8 encoding of the source command may not be *reverted* by:

```
source -encoding [encoding system] file.tcl
```

For me, this is according where Windows is moving.
If I create nowdays a file using the Windows editor application, it is encoded in UTF-8.
With older WIndows versions, this was cp1265.

## Full Unicode support

In Tcl 8, characters outside the BMP were stored as a surrogate pair
and effectively treated as a string of length 2. This is no longer
the case in Tcl 9 which has full support for the entire Unicode range
and will (correctly) treat these characters as strings of length 1.
︙